module.exports = {
entry: './main.js',
output: {
filename: 'build.js'
},
module: {
rules: [{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: ['es2015', 'react']
}
}
}]
},
resolve: {
modules: ['node_modules'],
extensions: [".js", ".json", ".jsx", ".css"]
}
}