Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

Dynamically add child components in React

My goal is to add components dynamically on a page/parent component. I started with some basic example template like …

javascript reactjs babeljs
Export multiple classes in ES6 modules

I'm trying to create a module that exports multiple ES6 classes. Let's say I have the following directory structure: my/ └── …

javascript module export ecmascript-6 babeljs
How do I install the babel-polyfill library?

I just started to use Babel to compile my ES6 javascript code into ES5. When I start to use Promises …

javascript node.js babeljs polyfills babel-polyfill
ES6 exporting/importing in index file

I am currently using ES6 in an React app via webpack/babel. I am using index files to gather all …

javascript ecmascript-6 webpack babeljs
Support for the experimental syntax 'classProperties' isn't currently enabled

While I was setting up React within Django project I came across this error ModuleBuildError in Module build failed (from ./…

reactjs webpack babeljs
'import' and 'export' may only appear at the top level

I'm using webpack with vuejs. Webpack does its thing, but when I look at the outputted app.js file, it …

webpack vue.js babeljs
What does "The code generator has deoptimised the styling of [some file] as it exceeds the max of "100KB"" mean?

I added a new npm package to my project and require it in one of my modules. Now I get …

webpack babeljs
Babel command not found

I have installed the babel-cli tool as explained by the Babel 'getting started' page. From a terminal inside my project …

npm babeljs
Null-safe property access (and conditional assignment) in ES6/2015

Is there a null-safe property access (null propagation / existence) operator in ES6 (ES2015/JavaScript.next/Harmony) like ?. in CoffeeScript for …

javascript coffeescript ecmascript-6 babeljs
How to run Node.js app with ES6 features enabled?

I use the require hook of BabelJS (formerly named 6to5) to run node apps with es6features: // run.js require("…

javascript node.js ecmascript-6 babeljs