I have a webpack config like this:
loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' } ]
And the babel config:
{ "presets": ['es2015'], "plugins": ['transform-runtime'] }
But the browser shows this message:
Inactive SyntaxError: Unexpected Token Export
What's wrong?
source share