mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
This reverts commit a13c6ccb11
.
This commit is contained in:
parent
39ba1a0110
commit
5c2e845ad7
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue