Skip to content

Commit e81de70

Browse files
committed
resolve dependency of pages/_error-debug from next root dir
1 parent ef409af commit e81de70

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

server/build/webpack.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,21 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
8080
]
8181
}] : [])
8282
.concat([{
83+
loader: 'babel',
84+
include: nextPagesDir,
85+
query: {
86+
plugins: [
87+
[
88+
require.resolve('babel-plugin-module-resolver'),
89+
{
90+
alias: {
91+
'ansi-html': require.resolve('ansi-html')
92+
}
93+
}
94+
]
95+
]
96+
}
97+
}, {
8398
test: /\.js$/,
8499
loader: 'babel',
85100
include: [dir, nextPagesDir],

0 commit comments

Comments
 (0)