I'm trying to get this to compile when using react + babel + webpack. I ran the create-react-app starter tool, then npm run eject so I could modify the config.
Then changing my webpack config like so:
loaders: [
{
test: /\.js$/,
include: paths.appSrc,
loaders: [
'babel?' + JSON.stringify(require('./babel.dev')),
'cssx-loader'
]
}
]
But the compiler fails:

Any ideas I could try?
I'm trying to get this to compile when using react + babel + webpack. I ran the create-react-app starter tool, then npm run eject so I could modify the config.
Then changing my webpack config like so:
But the compiler fails:

Any ideas I could try?