score:11

Accepted answer
{
    "presets": ["es2015", "react"]
}

score:0

module: {
 loaders: [{
  exclude: /node_modules/,
  loader: 'babel'
 },
{
        test: /\.js$/,
        loader: 'babel-loader',
        query: {
          presets: ['es2015', 'react']
        }

}]

score:1

 <script src="./index.js" type="text/babel"></script>

Related Query

More Query from same tag