Skip to content

Commit 2e7227b

Browse files
Aukevanoosthybrist
authored andcommitted
fix(@angular/build): Ensure disposal of close-javascript-transformer
The onDispose callback doesn't close the javascriptTransformer correctly yet. This ensures that all worker pools are cleaned after a disposal.
1 parent 149834d commit 2e7227b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ export function createCompilerPlugin(
591591
build.onDispose(() => {
592592
sharedTSCompilationState?.dispose();
593593
void compilation.close?.();
594+
void javascriptTransformer.close();
594595
void cacheStore?.close();
595596
});
596597

0 commit comments

Comments
 (0)