1
0
Fork 0
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:
Tim Neutkens 2018-02-19 08:49:59 +01:00 committed by Arunoda Susiripala
parent 7a28922b63
commit c204cdd91e

View file

@ -39,7 +39,7 @@ export default function onDemandEntryHandler (devMiddleware, compilers, {
const allEntries = Object.keys(entries).map((page) => {
const { name, entry } = entries[page]
entries[page].status = BUILDING
return addEntry(compilation, this.context, name, entry)
return addEntry(compilation, compiler.context, name, entry)
})
Promise.all(allEntries)