npm i -save babel-polyfill
Modify "karma.conf.js" (line 17):
files: ['./index.js'],
files: ['../../node_modules/babel-polyfill/dist/polyfill.js','./index.js'],
Modify "webpack.base.config.js" (line 12):
entry: {
app: './src/main.js'
},
entry: {
app: ['babel-polyfill', './src/main.js']
},
Why karma doesn't take the webpack configuration (is somebody can exmplain it, I will be very happy to understand)?