Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@samsch
Created April 14, 2017 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsch/54abd031b6ca088abe652371c8dd8754 to your computer and use it in GitHub Desktop.
Save samsch/54abd031b6ca088abe652371c8dd8754 to your computer and use it in GitHub Desktop.
Changed webpack config to use babel loader for .jsx files.
},
module: {
rules: [
{
- test : /\.js/,
+ test : /\.jsx?/,
include: path.resolve(__dirname, 'src/'),
use: ['babel-loader'],
},
],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment