add missing chunk groups to HotUpdateChunks
This commit is contained in:
parent
f7443ea094
commit
fac6c5241f
|
@ -461,6 +461,10 @@ class HotModuleReplacementPlugin {
|
|||
ChunkGraph.setChunkGraphForChunk(hotUpdateChunk, chunkGraph);
|
||||
hotUpdateChunk.id = chunkId;
|
||||
hotUpdateChunk.runtime = newRuntime;
|
||||
if (currentChunk) {
|
||||
for (const group of currentChunk.groupsIterable)
|
||||
hotUpdateChunk.addGroup(group);
|
||||
}
|
||||
chunkGraph.attachModules(hotUpdateChunk, newModules || []);
|
||||
chunkGraph.attachRuntimeModules(
|
||||
hotUpdateChunk,
|
||||
|
|
Loading…
Reference in New Issue