Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created May 26, 2018 12:09
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 christiannwamba/050a04c2389cdccbb1ed898b1590ace7 to your computer and use it in GitHub Desktop.
Save christiannwamba/050a04c2389cdccbb1ed898b1590ace7 to your computer and use it in GitHub Desktop.
// Process JS with Babel.
{
test: /\.(js|jsx)$/,
include: paths.appSrc,
loader: require.resolve('babel-loader'),
options: {
// This is a feature of `babel-loader` for Webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds.
cacheDirectory: true,
plugins: ['react-hot-loader/babel'],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment