Skip to content

Instantly share code, notes, and snippets.

@gndplayground
Last active September 10, 2017 10:53
Show Gist options
  • Save gndplayground/38f7c7589da06a13d34e4b23877b8354 to your computer and use it in GitHub Desktop.
Save gndplayground/38f7c7589da06a13d34e4b23877b8354 to your computer and use it in GitHub Desktop.
Babel loader use settings in Webpack 3 instead .babelrc
{
test: /\.js|jsx?$/,
loaders: [
{
loader: 'babel-loader',
options: {
babelrc: false,
presets: [
['es2015', { modules: false }],
'stage-2',
'react',
],
plugins: [
'react-hot-loader/babel',
'babel-plugin-styled-components',
],
},
},
],
exclude: /node_modules/,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment