Skip to content

Commit a6c8dea

Browse files
Update packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts
Co-authored-by: Alan Agius <alan.agius4@gmail.com>
1 parent ab17a90 commit a6c8dea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,11 @@ export function createCompilerPlugin(
590590

591591
// eslint-disable-next-line @typescript-eslint/no-misused-promises
592592
build.onDispose(() =>
593-
Promise.all(
594-
[compilation?.close?.(), cacheStore?.close(), javascriptTransformer?.close()].filter(
595-
(p): p is Promise<void> => p !== undefined,
593+
void Promise.all(
594+
[compilation?.close?.(), cacheStore?.close(), javascriptTransformer.close()].filter(
595+
Boolean,
596596
),
597-
).then(() => sharedTSCompilationState?.dispose()),
598-
);
597+
).then(() => sharedTSCompilationState?.dispose());
599598

600599
/**
601600
* Checks if the file has side-effects when `advancedOptimizations` is enabled.

0 commit comments

Comments
 (0)