Skip to content Skip to sidebar Skip to footer
Showing posts with the label Babeljs

Grunt Babel Taking 6 Seconds Per File

I'm trying to use Babel in my grunt build process to transpile my .js project files from ES6 to… Read more Grunt Babel Taking 6 Seconds Per File

How To Create Your Own Babel Processor Alternative To `react`

When you use JSX in a JS file, you have to import React or else the generated code won't compil… Read more How To Create Your Own Babel Processor Alternative To `react`

What Does The "modules:auto" Means In @babel/preset-env Field?

the babel docs say the modules default option is auto, what does the auto means? does it transform … Read more What Does The "modules:auto" Means In @babel/preset-env Field?

React Native: Can't Find Variable: Require

I am trying to modify a react native boilerplate so that I can be run on Android platform. I instal… Read more React Native: Can't Find Variable: Require

Async/await Referenceerror: Can't Find Variable: Regeneratorruntime

I've been searching a lot on this error and found that is related to babel that cannot generate… Read more Async/await Referenceerror: Can't Find Variable: Regeneratorruntime

Does Webpack Make Es6 Modules Compatible With Es5 Browsers?

If I use an ES6 import in a JS file like: import { tempates } from './templates.js'; webpa… Read more Does Webpack Make Es6 Modules Compatible With Es5 Browsers?

Shorten Es2015 Import Paths

I am working on a large ES2015 project that has a lot of import statements referring to a library i… Read more Shorten Es2015 Import Paths

Webpack + Babel - React, Unexpected Token 'import'

I'm trying to make index.js work with es2015. Before directing me to .babelrc, note that I have… Read more Webpack + Babel - React, Unexpected Token 'import'

Typescript 1.8 - Es2015 Imports In Js Files

I would like to start using Typescript on an Existing Babel project. My goal is to be able to add t… Read more Typescript 1.8 - Es2015 Imports In Js Files

Babel/requirejs + Typeof "rangeerror: Maximum Call Stack Size Exceeded"

I have a very basic JS error and I'm quite ashamed to not be able to solve it... I'm develo… Read more Babel/requirejs + Typeof "rangeerror: Maximum Call Stack Size Exceeded"

Es7 Async Await Functions With Babel-loader Not Working

I'm trying to run async await functions in JavaScript using the babel-loader of webpack. I'… Read more Es7 Async Await Functions With Babel-loader Not Working

Compiling Es6 Arrow Functions To Es5 Using Babel.js

While looking into ES6 arrow functions' documentation on Mozilla documentation, I got to know t… Read more Compiling Es6 Arrow Functions To Es5 Using Babel.js

Sinon.js Stub A Function That Resolves A Promise

I want to use Sinon to stub a function that uses callbacks which resolve a promise: const callback … Read more Sinon.js Stub A Function That Resolves A Promise

(this) Is Recognised On React Js Callback

class App extends Component { constructor(props){ super(props); this.state … Read more (this) Is Recognised On React Js Callback

How To Enable Support For Class Properties In The Latest Version Babeljs?

Does anyone know how to enable support for properties of a class in the latest version BabelJS? i… Read more How To Enable Support For Class Properties In The Latest Version Babeljs?

Which Babel Settings Are Suitable For Exporting A Library?

I am new to Babel+Webpack and have some confusion regarding .babelrc configuration. FIRST CONFIGURA… Read more Which Babel Settings Are Suitable For Exporting A Library?

How To Put React Component Inside Html String?

I have: an array of HTML strings, eg [' Hi', ' ']. I want to place in between them… Read more How To Put React Component Inside Html String?

How To Test Code Setup With Babel Configuration(for Library) Using Jasmine?

Good day to all, I am struggling from quite a few days and raised few questions here here and I hav… Read more How To Test Code Setup With Babel Configuration(for Library) Using Jasmine?

How To Import A Jquery Plugin Into A Babel App

So I have a modern javascript app build using ES6 modules and transpiled by babel. In this app, I … Read more How To Import A Jquery Plugin Into A Babel App

Remove Some Code Lines In Production Distribution Files?

I'm using Babel and Webpack to generate ES5 code from ES6. There are some validations that is u… Read more Remove Some Code Lines In Production Distribution Files?