Skip to content

Commit 2a1df29

Browse files
authored
fix(chrome-devtools): fix dependency graph lose node (#2806)
1 parent 657925e commit 2a1df29

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/dull-seals-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/devtools': patch
3+
---
4+
5+
fix(chrome-devtools): fix dependency graph lose node

packages/chrome-devtools/src/utils/sdk/graph.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,12 @@ export class DependencyGraph {
203203

204204
graphChilden.forEach((dep) => {
205205
this.addEdge(id + dep, id, id + dep);
206-
this.run(targetGraph[targetWithoutType], dep, type, id + dep);
206+
this.run(
207+
targetGraph[targetWithoutType] || targetGraph[target],
208+
dep,
209+
type,
210+
id + dep,
211+
);
207212
});
208213
}
209214

0 commit comments

Comments
 (0)