Skip to content

Commit 76f2922

Browse files
committed
fix: module graph causing unnecessary routes regeneration on every update
1 parent 318c14f commit 76f2922

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node/utils/moduleGraph.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export class ModuleGraph {
5454
*/
5555
delete(module: string): Set<string> {
5656
const deleted = new Set<string>()
57+
if (!this.nodes.has(module)) deleted
58+
5759
const stack: string[] = [module]
5860

5961
// Traverse the reverse dependency graph (using dependents).

0 commit comments

Comments
 (0)