After reading the article Removing Babel's Stage Presets by babel, I still not fully understand how to add a proposal from, for example, stage-3 (flatMap) to .babelrc.  As far as I understand, because flatMap can be written in ES5, then I need a...
I am using ChildNode.remove() and I described by Mozilla I need a polyfill for IE. I am using webpack with the babel-polyfill configured:   "babel-polyfill": "^6.13.0",  "webpack": "^2.4.1",   webpack.config.babel.js:...
I am unable to find a defined set of features that Babel compiler cannot compile. I know that there is babel-polyfill and core.js but I need to know the exact names of es2015 features which babel compiler cannot compile.  Any help would be appreciate...
I'm using babel-polyfill and I'm trying to iterate an HTMLCollection object using for-of loop:  const elements = document.getElementsByClassName('some-class') for (const element of elements) {   console.log(element) }   It's not w...
I'm trying to contribute to a testing library. The library should provide a wrapper for react-test-renderer like react-native-testing-library does.  In order to see if my code worked I wrote a simple unit test using the code I wrote for the libra...
I am getting the following error  Uncaught Error: only one instance of babel-polyfill is allowed     at Object.eval (index.js?db4d:10)     at eval (index.js:29)     at Object../node_modules/babel-polyfill/lib/index.js (vendors.js?3b19ee46035be2acbd36...
I am currently trying to get my es2017 code to work in IE11 and unfortunately I need to transpile the code on the client side due to the nature of my project.  I was looking at some other SO posts (How to install babel and using ES6 locally on Browse...
I understand the difference between babel-runtime and babel-polyfill that the first one doesn't populate global scope while latter does. I think babel-runtime is safer hovewer I can't understand what this means and how does it effects me:...
I am getting a 'only one instance of babel-polyfill is allowed' Error when running a webpack compiled javascript file using the webpack config below.    const config = {   entry: {     file1: ['babel-polyfill','/path1/file1.js'...
When using Rollup how can you get it to work with both @babel/preset-env and @babel/polyfill? The docs mentioned to add useBuiltIns: 'usage' but when I do this I get a require is not defined error in console. Below is what I have so far; is t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.