Commit e81de708 authored by nkzawa's avatar nkzawa

resolve dependency of pages/_error-debug from next root dir

parent ef409af4
...@@ -80,6 +80,21 @@ export default async function createCompiler (dir, { hotReload = false } = {}) { ...@@ -80,6 +80,21 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
] ]
}] : []) }] : [])
.concat([{ .concat([{
loader: 'babel',
include: nextPagesDir,
query: {
plugins: [
[
require.resolve('babel-plugin-module-resolver'),
{
alias: {
'ansi-html': require.resolve('ansi-html')
}
}
]
]
}
}, {
test: /\.js$/, test: /\.js$/,
loader: 'babel', loader: 'babel',
include: [dir, nextPagesDir], include: [dir, nextPagesDir],
......
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