Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

Cypress ParseError: 'import' and 'export' may appear only with 'sourceType: module'

I updated Cypress from 3.0.3 to 3.1.3. Im using ES6 import/export modules which must be working related to docs. But Im …

javascript babeljs browserify e2e-testing cypress
Error with babel-polyfill and webpack

I am following along a tutorial from Udemy, and we've just downloaded babel. Everything was working fine until I downloaded …

webpack babeljs babel-polyfill
Gulp + browserify + 6to5 + source maps

I'm trying to write a gulp task allowing me to use modules in JS (CommonJS is fine), using browserify + 6to5. …

gulp browserify source-maps babeljs
using the ... spread syntax in javascript es6 named exports

I am attempting to import everything from a library as a hash, modify it, and re-export the modified hash, without …

javascript ecmascript-6 babeljs ecmascript-next spread-syntax
ReferenceError: global is not defined at eval

I'm experiencing an error that I believe is from webpack's side. Here it is: index.js:9 Uncaught ReferenceError: global is …

webpack redux babeljs react-hot-loader babel-polyfill
Webpack, Babel 7.4.0 and core-js 3

Given the following package.json { "name": "webpack-babel7", "version": "1.0.0", "main": "index.js", "license": "MIT", "devDependencies": { "@babel/core": "^7.4.4", "@babel/preset-env": "^7.4.4", "babel-loader": "^8.0.5", "webpack": "^4.30.0", "…

webpack babeljs webpack-4
Running Mocha 6 ES6 tests with Babel 7, how to set up?

For a library written in ES6/7, I want to compile (to ES5) the library to a dist/ folder. I also …

npm mocha.js babeljs transpiler
How do I use .babelrc to get babel-plugin-import working for antd?

I'm new to react, babel, and antd. I installed react and started a project using create-react-app. I installed antd (ant.…

babeljs create-react-app antd
Promise.allSettled in babel ES6 implementation

I'm using babel to transpile my [email protected] code and I'm stuck with promises. I need allSettled-type functionality that …

javascript node.js ecmascript-6 babeljs es6-promise