Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Feb 27, 2023
1 parent 00dc701 commit 812bce3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/core/core/src/requests/AssetGraphRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ export class AssetGraphBuilder {
walk(rootNodeId);
}

let queue = dirtyDeps ? dirtyDeps : changedDepsUsedSymbolsUpDirtyDownAssets;
let queue = dirtyDeps ?? changedDepsUsedSymbolsUpDirtyDownAssets;
while (queue.size > 0) {
let queuedNodeId = setPop(queue);
let node = nullthrows(assetGraph.getNode(queuedNodeId));
Expand All @@ -983,6 +983,12 @@ export class AssetGraphBuilder {
invariant(depNode && depNode.type === 'dependency');
return depNode;
});
for (let dep of incoming) {
if (dep.usedSymbolsUpDirtyDown) {
dep.usedSymbolsUpDirtyDown = false;
node.usedSymbolsUpDirty = true;
}
}
let outgoing = assetGraph
.getNodeIdsConnectedFrom(queuedNodeId)
.map(depNodeId => {
Expand All @@ -1007,12 +1013,6 @@ export class AssetGraphBuilder {
errors.delete(queuedNodeId);
}
}
for (let dep of incoming) {
if (dep.usedSymbolsUpDirtyDown) {
dep.usedSymbolsUpDirtyDown = false;
node.usedSymbolsUpDirty = true;
}
}

for (let i of incoming) {
if (i.usedSymbolsUpDirtyUp) {
Expand Down

0 comments on commit 812bce3

Please sign in to comment.