Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

Using Node.js require vs. ES6 import/export

In a project I'm collaborating on, we have two choices on which module system we can use: Importing modules using …

javascript node.js ecmascript-6 babeljs
Babel 6 regeneratorRuntime is not defined

I'm trying to use async, await from scratch on Babel 6, but I'm getting regeneratorRuntime is not defined. .babelrc file { "presets": [ "…

javascript node.js babeljs
Getting Unexpected Token Export

I am trying to run some ES6 code in my project but I am getting an unexpected token export error. …

javascript ecmascript-6 webpack babeljs
babel-loader jsx SyntaxError: Unexpected token

I'm a beginner in React + Webpack. I found a weird error in my hello world web app. I'm using babel-loader …

javascript reactjs webpack babeljs
SyntaxError: Cannot use import statement outside a module

I've got an ApolloServer project that's giving me trouble, so I thought I might update it and ran into issues …

javascript node.js babeljs apollo-server
"unexpected token import" in Nodejs5 and babel?

In js file, i used import to instead of require import co from 'co'; And tried to run it directly …

javascript node.js ecmascript-6 babeljs package.json
"You may need an appropriate loader to handle this file type" with Webpack and Babel

I am trying to use Webpack with Babel to compile ES6 assets, but I am getting the following error message: …

javascript webpack babeljs es6-module-loader
Call async/await functions in parallel

As far as I understand, in ES7/ES2016 putting multiple await's in code will work similar to chaining .then() with …

javascript node.js asynchronous ecmascript-6 babeljs
How do I generate sourcemaps when using babel and webpack?

I'm new to webpack, and I need a hand in setting up to generate sourcemaps. I'm running webpack serve from …

javascript webpack build-process babeljs source-maps
Correct way to import lodash

I had a pull request feedback below, just wondering which way is the correct way to import lodash? You'd better …

javascript lodash babeljs