Skip to content

Commit 5fa47e6

Browse files
authored
fix: update treeNode (#7627)
1 parent 4836d40 commit 5fa47e6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/silly-carpets-mix.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@modern-js/server': patch
3+
---
4+
5+
fix: update treeNode
6+
fix: 修复依赖更新问题

packages/server/server/src/dev-tools/watcher/dependencyTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class DependencyTree {
7070
}
7171
}
7272

73-
children.forEach(child => {
73+
children?.forEach(child => {
7474
if (!this.shouldIgnore(child.filename)) {
7575
const childTreeNode = this.tree.get(child.filename)!;
7676
if (childTreeNode) {

0 commit comments

Comments
 (0)