Commit 5c2e845a authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by Naoyuki Kanezawa

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

This reverts commit a13c6ccb.
parent 39ba1a01
...@@ -122,7 +122,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa ...@@ -122,7 +122,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa
loader: 'babel', loader: 'babel',
include: [dir, nextPagesDir], include: [dir, nextPagesDir],
exclude (str) { 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: { query: {
sourceMaps: dev ? 'both' : false, sourceMaps: dev ? 'both' : false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment