Commit 700c969
fix(@angular/build): builder removes @angular/localize when external packages are not inlined
The current bundle logic removes any import starting with `@angular/localize` if i18n inline is active.
The i18n inline transformation is only applied to internal packages.
This causes an issue at run time execution of the packages which are external (pre-bundled) and therefore not inlined.
The current fix aims at removing import starting with `@angular/localize` only if both i18n inline is active and there are no external packages.1 parent c3c9ac5 commit 700c969
File tree
1 file changed
+6
-3
lines changed- packages/angular/build/src/tools/esbuild
1 file changed
+6
-3
lines changedLines changed: 6 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 | + | |
| 678 | + | |
676 | 679 | | |
677 | 680 | | |
678 | 681 | | |
| |||
0 commit comments