fix(builder): ensure entry is in graph for HMR (#7097)

This commit is contained in:
pooya parsa 2020-03-18 11:05:37 +01:00
parent 1f3c3ad9f3
commit 4b34941df8

View File

@ -723,6 +723,9 @@ export default class Builder {
Array.from(deps),
['all'],
debounce((event, fileName) => {
if (!dep2Entry[fileName]) {
return // #7097
}
for (const entry of dep2Entry[fileName]) {
// Reload entry
let newItem