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

fix recovering runtime error (#515)

This commit is contained in:
Naoyuki Kanezawa 2016-12-26 05:03:07 +09:00 committed by Guillermo Rauch
parent 78e21d0f74
commit d1f8b1aef1

View file

@ -40,7 +40,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false
const errorDebugEntry = join('bundles', 'pages', '_error-debug.js')
const errorDebugPath = join(nextPagesDir, '_error-debug.js')
entry[errorDebugEntry] = errorDebugPath
entry[errorDebugEntry] = defaultEntries.concat([errorDebugPath + '?entry'])
const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules')