-
-
Save christiannwamba/050a04c2389cdccbb1ed898b1590ace7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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