Since the answer above still leaves some people in the dark, here's what a complete webpack.config.js might look like:
var path = require('path');_x000D_
var config = {_x000D_
entry: path.resolve(__dirname, 'app/main.js'),_x000D_
output: {_x000D_
path: path.resolve(__dirname, 'build'),_x000D_
filename: 'bundle.js'_x000D_
},_x000D_
module: {_x000D_
loaders: [{_x000D_
test: /\.jsx?$/,_x000D_
loader: 'babel',_x000D_
query:_x000D_
{_x000D_
presets:['es2015', 'react']_x000D_
}_x000D_
}]_x000D_
},_x000D_
_x000D_
};_x000D_
_x000D_
module.exports = config;
_x000D_