1
0
Fork 0
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:
nkzawa 2016-11-06 01:12:21 +09:00
parent ef409af453
commit e81de708b8

View file

@ -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],