Skip to content

Commit ed9188e

Browse files
committed
fixup! fix(@angular/build): scope BundlerContext invalidation and cache one-shot bundle results
1 parent 2d53b78 commit ed9188e

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

‎packages/angular/build/src/tools/esbuild/bundler-context.ts‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -545,22 +545,7 @@ export class BundlerContext {
545545
}
546546
}
547547

548-
let invalid = false;
549-
if (this.watchFiles.size < candidateFiles.size) {
550-
for (const file of this.watchFiles) {
551-
if (candidateFiles.has(file)) {
552-
invalid = true;
553-
break;
554-
}
555-
}
556-
} else {
557-
for (const file of candidateFiles) {
558-
if (this.watchFiles.has(file)) {
559-
invalid = true;
560-
break;
561-
}
562-
}
563-
}
548+
const invalid = !this.watchFiles.isDisjointFrom(candidateFiles);
564549

565550
if (invalid) {
566551
this.#invalidationEpoch++;

0 commit comments

Comments
 (0)