const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: path.join(__dirname, 'examples/src/index.jsx'),
  output: {
    path: path.join(__dirname, 'examples/dist'),
    filename: 'bundle.js'
  },
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/,
        use: 'babel-loader',
        exclude: /node_modules/
      },
      {
        test: /\.css$/,
        use: ['style-loader', 'css-loader']
      }
    ]
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: path.join(__dirname, 'examples/src/index.html')
    })
  ],
  devServer: {
    contentBase: path.join(__dirname, 'examples/dist'),
    port: 8000
  }
};

@@ -594,16 +594,66 @@
 %7D)%0A  %5D,%0A
+  resolve: %7B%0A    extensions: %5B'.js', '.jsx'%5D%0A  %7D,%0A
   devSer

enable importing files ending with .jsx