Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 20, 2021
1 parent b49ecb0 commit 6d8e0ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/core/src/requests/AssetGraphRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ export class AssetGraphBuilder {
}
}
if (node.usedSymbolsUpDirty) {
node.usedSymbolsUpDirty = false;
let e = visit(
node,
incoming,
Expand All @@ -721,8 +720,10 @@ export class AssetGraphBuilder {
}),
);
if (e.length > 0) {
node.usedSymbolsUpDirty = true;
errors.set(nodeId, e);
} else {
node.usedSymbolsUpDirty = false;
errors.delete(nodeId);
}
}
Expand Down Expand Up @@ -768,8 +769,10 @@ export class AssetGraphBuilder {
if (node.usedSymbolsUpDirty) {
let e = visit(node, incoming, outgoing);
if (e.length > 0) {
node.usedSymbolsUpDirty = true;
errors.set(queuedNodeId, e);
} else {
node.usedSymbolsUpDirty = false;
errors.delete(queuedNodeId);
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/core/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export type DependencyNode = {|
hasDeferred?: boolean,
usedSymbolsDown: Set<Symbol>,
usedSymbolsUp: Set<Symbol>,
/** for the "down" pass, the dependency resolution asset needs to be updated */
usedSymbolsDownDirty: boolean,
/** for the "up" pass, the parent asset needs to be updated */
usedSymbolsUpDirtyUp: boolean,
Expand Down

0 comments on commit 6d8e0ec

Please sign in to comment.