Babel

Here are 8,022 public repositories matching this topic...
-
Updated
Jul 5, 2021 - JavaScript
Describe the feature
Related with swc-project/swc#3859.
We want to establish initial feature parity to existing @swc/cli to plan out migration with possible breaking changes.
These are initial flags we'd like to have.
-
config
-
config_file
-
filename
(swc-project/swc#4016) -
env_name
-
ignore
-
Updated
Jun 29, 2022 - TypeScript
-
Updated
Jun 23, 2022 - JavaScript
-
Updated
Jun 25, 2022 - TypeScript
-
Updated
Jan 14, 2022 - JavaScript
-
Updated
May 16, 2022 - JavaScript
Expected Behavior
Image's onLoad prop is provided to an img tag
Actual Behavior
Image's onLoad prop is not provided to an img tag
source code of the Image component:
const handleOnLoad = () => {
setFallbackInUse(false);
};
const extraProps = {
onError: (onError || fallback) && handleError,
onLoad: handleOnLoad,
};
ret
For the most part this just works, but functions within tagged markup get weird indent assertions, e.g.,
${collection.map((item) => {
const { prop1, prop2 } = workWith(item); // eslint: expected indentation of 4 but found 10 (indent)
return html` // eslint: expected indentation of 4 but found 10 (indent)
<${Widget} prop1=${prop1} prop2=${prop2} />
Babel Macro
-
Updated
Jun 30, 2022 - JavaScript
-
Updated
Jun 27, 2022 - JavaScript
-
Updated
May 20, 2022 - JavaScript
-
Updated
Jun 17, 2022 - JavaScript
Validate the entire tree of options passed to preset.
Maybe, each plugin can export a list of options that only babili preset understands and we can validate them only when using the preset and not when using the plugin separately.
module.exports = function plugin() {};
module.exports.options = PropTypes.object({
n: PropTypes.number
});
Or, this can be implemented in bab
-
Updated
Jun 30, 2022 - JavaScript
-
Updated
Jun 23, 2022 - JavaScript
-
Updated
Aug 18, 2021 - JavaScript
in my old project , using webpack 1.x. And I use esbuild-loader replace babel-loader will print error
` building for production.../Users/wanglihui/WebstoreProject/onionfph5/project/node_modules/esbuild-loader/dist/plugin.js:12
compiler.hooks.thisCompilation.tap('esbuild', compilation => {
^
TypeError: Cannot read property 'thisCompilation' of undefined
-
Updated
Jul 15, 2020 - JavaScript
-
Updated
Apr 18, 2022 - TypeScript
Created by Sebastian McKenzie, James Kyle, Henry Zhu, Logan Smyth, Daniel Tschinder
Released September 28, 2014
- Organization
- babel
- Website
- babeljs.io
How are you using Babel?
babel-loader (webpack)
Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
Logs