Skip to content

Commit

Permalink
Revert "Allow the pages directory to be in node_modules (#318)" (#324)
Browse files Browse the repository at this point in the history
This reverts commit a13c6cc.
  • Loading branch information
arunoda authored and nkzawa committed Dec 2, 2016
1 parent 39ba1a0 commit 5c2e845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa
loader: 'babel',
include: [dir, nextPagesDir],
exclude (str) {
return /node_modules/.test(str) && str.indexOf(nextPagesDir) !== 0 && str.indexOf(dir) !== 0
return /node_modules/.test(str) && str.indexOf(nextPagesDir) !== 0
},
query: {
sourceMaps: dev ? 'both' : false,
Expand Down

0 comments on commit 5c2e845

Please sign in to comment.