1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Revert "Allow the pages directory to be in node_modules (#318)" (#324)

This reverts commit a13c6ccb11.
This commit is contained in:
Arunoda Susiripala 2016-12-02 13:28:08 +05:30 committed by Naoyuki Kanezawa
parent 39ba1a0110
commit 5c2e845ad7

View file

@ -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,