Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

Node error: SyntaxError: Unexpected token import

I don't understand what is wrong. I checked other forum talking about transpilation and babel. What do I have to …

node.js babeljs
What is the best way to include babel polyfill using multiple entry points

I'm using a webpack config using multiple entry points: var fs = require('fs'); var webpack = require('webpack'); var commonsPlugin = new …

webpack babeljs
UglifyJS throws unexpected token: keyword (const) with node_modules

A small project I started make use a node module (installed via npm) that declares const variables. Running and testing …

javascript npm gulp babeljs uglifyjs2
Convert ES6 Iterable to Array

Say you have an array-like Javascript ES6 Iterable that you know in advance will be finite in length, what's the …

javascript arrays ecmascript-6 iterable babeljs
` __webpack_require__(...) is not a function` when using babel 6

Everything seems to build fine: http://d.pr/i/1aZxR with the following configs. However, when I run the code …

webpack babeljs webpack-dev-server
Upgrade to Babel 7: Cannot read property 'bindings' of null

I just upgraded to Babel 7 (from 6) by running these commands: npm remove babel-cli npm install --save-dev @babel/cli @babel/core @…

javascript node.js babeljs
How do I get Babel 6 to compile to ES5 javascript?

I've installed the latest version of babel. Currently 6.4.0. I create a file called myclass.js that has the following code. …

ecmascript-6 babeljs
gulp babel, exports is not defined

Consider the following example code (and maybe I am doing it wrong?) var FlareCurrency = { }; export {FlareCurrency}; I have the following …

javascript gulp ecmascript-6 babeljs ecmascript-5
Importing CSS files in Isomorphic React Components

I have a React application with Components written in ES6 - transpiled via Babel and Webpack. In some places I …

javascript reactjs webpack babeljs
Babel Plugin/Preset files are not allowed to export objects, only functions

I`m tryng to use Babel-loader on an old project, and i notice some issues regarding when babel loader is …

javascript webpack babeljs