You will need to install babel-runtime.
npm install babel-runtime
Then you can use the following as the loader in your webpack configuration -
{ test: /\.js?$/, exclude: /node_modules/, loaders: ['babel?optional=runtime'] }
or
{ test: /\.js?$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime' }
Nikhil Baradwaj Aug 20 '15 at 23:44 2015-08-20 23:44
source share