Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

Transpile Async Await proposal with Babel.js?

There is a proposal for introducing C# style async-await. I know Babel.js transpiles ES6 to ES5, but is there …

javascript async-await babeljs ecmascript-next
ts-jest does not recognize es6 imports

I'm adding typescript support to a react codebase, and while the app is working ok, jest tests are failing all …

typescript babeljs jestjs es6-modules
How does Search Engine indexing work for JavaScript web applications like REACT?

I am planning to implement react.js for my application. As I am new to react I have a doubt …

javascript reactjs seo react-redux babeljs
Why can't I import a default export with "import ... as" with BabelJS

In version 5.6.4 of BabelJS, I seemingly cannot "import ... as." Here are examples of what I am trying to do: In …

ecmascript-6 babeljs
Arrow Function in Object Literal

I'm trying to figure out why an arrow function in an object literal is called with window as this. Can …

javascript ecmascript-6 babeljs object-literal arrow-functions
Service mocked with Jest causes "The module factory of jest.mock() is not allowed to reference any out-of-scope variables" error

I'm trying to mock a call to a service but I'm struggeling with the following message: The module factory of …

unit-testing reactjs babeljs jestjs
template literals in jsx

I want to use this but props <section class="slider" data-slick='{"slidesToShow": 3,"autoplay": true, "responsive": [{"breakpoint":600,"settings":{"slidesToShow": 2}}]}…

javascript reactjs babeljs template-literals
How to use async await function object in Javascript?

Say I have a function object- setObj : function(a,b){ obj.a = a; obj.b = b; } If I have to …

javascript async-await babeljs ecmascript-next
Problems with babel loader in react-create-app

The Problem create-react-app initializes a repository where babel-loader is installed as an older version than needed. LOG: There might be …

reactjs webpack babeljs create-react-app babel-loader
Confused about useBuiltIns option of @babel/preset-env (using Browserslist Integration)

I'm working on a web project using Babel 7 with Webpack 4. I've never used Babel before and can't really understand some …

javascript webpack babeljs babel-preset-env