Skip to content

Commit 31d8819

Browse files
crisbetoandrewseguin
authored andcommitted
build: remove infinite import loops (#17060)
Fixes some more infinite loops due to a package that tries to import itself.
1 parent 96d914d commit 31d8819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/package-tools/secondary-entry-points.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ function getBuildOrder(node: BuildNode): BuildNode[] {
6767
return [];
6868
}
6969

70+
node.visited = true;
7071
let buildOrder: BuildNode[] = [];
7172
for (const dep of node.deps) {
7273
buildOrder = [...buildOrder, ...getBuildOrder(dep)];
7374
node.depth = node.deps.reduce((maxDepth, d) => Math.max(d.depth + 1, maxDepth), -1);
7475
}
7576

76-
node.visited = true;
7777
return [...buildOrder, node];
7878
}
7979

0 commit comments

Comments
 (0)