mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
resolve dependency of pages/_error-debug from next root dir
This commit is contained in:
parent
ef409af453
commit
e81de708b8
|
@ -80,6 +80,21 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
|
|||
]
|
||||
}] : [])
|
||||
.concat([{
|
||||
loader: 'babel',
|
||||
include: nextPagesDir,
|
||||
query: {
|
||||
plugins: [
|
||||
[
|
||||
require.resolve('babel-plugin-module-resolver'),
|
||||
{
|
||||
alias: {
|
||||
'ansi-html': require.resolve('ansi-html')
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}, {
|
||||
test: /\.js$/,
|
||||
loader: 'babel',
|
||||
include: [dir, nextPagesDir],
|
||||
|
|
Loading…
Reference in a new issue