Skip to content

Commit

Permalink
fix double compiling of node_modules
Browse files Browse the repository at this point in the history
react-static@ad87562 introduced some double compiling.
like here: glimmerjs/glimmer-application-pipeline#87

so excluding `node_modules` we must!
  • Loading branch information
digitalkaoz authored Sep 26, 2018
1 parent deeec5b commit 8b0c8ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/static/webpack/rules/jsLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function({ config, stage }) {
loader: 'babel-loader',
options: {
...babelFile,
exclude: new RegExp(`(node_modules|${config.paths.EXCLUDE_MODULES})`),
root: config.paths.ROOT,
presets: [[babelPreset, { modules: false }]],
cacheDirectory: isRelativePath ? stage !== 'prod' : config.paths.TEMP,
Expand Down

0 comments on commit 8b0c8ac

Please sign in to comment.