Commit 38c2200
authored
fix(@angular/build): do not remove
The current bundle logic removes the `@angular/localize` polyfill if i18n inline is active. However, i18n inlining is not applied on external packages (e.g. during `ng serve` for prebundled dependencies)
This causes an issue at runtime execution of the packages which are external and depend on localization.
With this change the `@angular/localize` polyfill is retained when external packages is truthy.@angular/localize when having external packages (#31721)1 parent eca8236 commit 38c2200
File tree
1 file changed
+5
-3
lines changed- packages/angular/build/src/tools/esbuild
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| |||
0 commit comments