Skip to content

Commit

Permalink
Fix chunk graph update when merging chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Feb 11, 2023
1 parent f125345 commit a7b36ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/chunkAssignment.ts
Expand Up @@ -430,6 +430,8 @@ function mergeChunks(
const { dependencies, dependentChunks } = closestChunk;
for (const dependency of mergedChunk.dependencies) {
dependencies.add(dependency);
dependency.dependentChunks.delete(mergedChunk);
dependency.dependentChunks.add(closestChunk);
}
for (const dependentChunk of mergedChunk.dependentChunks) {
dependentChunks.add(dependentChunk);
Expand Down

0 comments on commit a7b36ca

Please sign in to comment.