Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

static class property not working with Babel

I am using JSDOC and all it supported npm plugins to create nice documentation. Getting hard time when jsdoc is …

javascript reactjs ecmascript-6 babeljs jsdoc3
How to add flatMap using babel 7?

After reading the article Removing Babel's Stage Presets by babel, I still not fully understand how to add a proposal …

javascript babeljs polyfills babel-polyfill
Extend ES6 plugin to jQuery prototype

I would like ask some help because i can't convert my classic jQuery (v2) plugin in ES6 with module and …

javascript jquery ecmascript-6 babeljs extend
Webpack build fails for IE (11)

Trying to setup webpack to build my .js and .vue files. Seems to no transpile _name() {} style function to regular …

vue.js webpack babeljs babel-loader
Nodemon + babel restart the server multiple times

In my package.json I have a start-script which I'm using for my dev enviroment. It looks like this: "scripts": { "…

node.js babeljs nodemon babel-node
Babel 7 fails with single plugin saying "Duplicate plugin/preset detected."

The plugin that fails is @babel/plugin-transform-regenerator (no marginal plugin, 1.6 milion downloads / week). This is my entire .babelrc: { "presets": [], "plugins": [ "@…

javascript npm babeljs parceljs
Webstorm ES6 named import getting cannot resolve symbol error

I have an error in Webstorm when using ES6 named import declaration: import { nodes } from 'utils/dom'; I get "cannot …

javascript frontend webstorm ecmascript-6 babeljs
How to polyfill IE11 in NextJS project?

I'm trying to polyfill the project for IE11 but no matter what I do browser logs these errors: Dev mode: …

reactjs internet-explorer-11 babeljs next.js babel-polyfill
Polyfill for ie

I'm trying to add a polyfill to my vue.js 2.0/Laravel5.3 application because in internet explorer 11 I receive an error: …

javascript laravel vue.js babeljs polyfills
"Define is not defined" in Jest when testing es6 module with RequireJS dependency

I have a Jest test suite that fails to run because the component it's trying to test depends on a …

reactjs webpack babeljs jestjs babel-jest