As I write webpack.config.js like this
module.exports = { entry: \'./index.jsx\', output: { filename: \'bundle.js\' }, module: { loaders: [{
As mentioned in the comments on the answer from @max, for webpack 4, I found that I needed to put this in one of the rules that were listed under module, like so:
{ module: { rules: [ { test: /\.jsx?$/, resolve: { extensions: [".js", ".jsx"] }, include: ... } ] } }