I am trying to run Karma-babel-preprocessor and a straight forward ES6 generator:
//require(\'babel/polyfill\');
describe(\"how Generators work\", functio
If you use React, adding polyfills from create-react-app worked for me.
yarn add --dev react-app-polyfill
Then add the following lines to webpack.config.js
entry: {
app: [
'react-app-polyfill/ie9', // Only if you want to support IE 9
'react-app-polyfill/stable',
'./src/index.jsx',
],
},
See more examples on the react-app-polyfill GitHub page.