mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Read compiler.context instead of this.context (#3839)
This commit is contained in:
parent
7a28922b63
commit
c204cdd91e
|
@ -39,7 +39,7 @@ export default function onDemandEntryHandler (devMiddleware, compilers, {
|
||||||
const allEntries = Object.keys(entries).map((page) => {
|
const allEntries = Object.keys(entries).map((page) => {
|
||||||
const { name, entry } = entries[page]
|
const { name, entry } = entries[page]
|
||||||
entries[page].status = BUILDING
|
entries[page].status = BUILDING
|
||||||
return addEntry(compilation, this.context, name, entry)
|
return addEntry(compilation, compiler.context, name, entry)
|
||||||
})
|
})
|
||||||
|
|
||||||
Promise.all(allEntries)
|
Promise.all(allEntries)
|
||||||
|
|
Loading…
Reference in a new issue