Commit 99183e1
fix(@angular/build): #31973 Added JavaScriptTransformer close to dispose method
This change allows for awaiting the disposed plugin and added the
missing close method of the JavaScript transformer to the onDispose.
When the plugin is run multiple times on different projects/bundles
without proper closing it will result in a node heap corruption. This
allows us to cleanup the build before we start a new one.
fix(@angular/build): #31973 - Disable linting warning in onDispose
ESbuild will still treat this as a void and this bypass allows for
breaking free of the forced fire-and-forget. Functionally this will have
no impact on current behavior, it just adds some extra freedom to
potentially process and await the Promise.
Update packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts
Co-authored-by: Alan Agius <[email protected]>1 parent bf990dc commit 99183e1
File tree
1 file changed
+7
-5
lines changed- packages/angular/build/src/tools/esbuild/angular
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| |||
0 commit comments