-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular/build): minimize reliance on esbuild
inject
to prevent…
… code reordering Resolved an issue where the use of `esbuild`'s `inject` feature caused incorrect reordering of class structures during bundling. This reordering affected extended classes, as illustrated below: ```js class e extends Ur { constructor(n, r, i) { super(n, r, i); } ngOnDestroy() { this.flush(); } static ɵfac = function (r) { return new (r || e)(pe(Xe), pe(Ti), pe(Di)); }; static ɵprov = oe({ token: e, factory: e.ɵfac }); } var Ur = class { // Class properties and methods omitted for brevity }; ``` By reducing the reliance on `inject`, we ensure that the ordering of class properties and methods remains consistent, preserving the expected behavior. Closes #28941 (cherry picked from commit 8f9fc59)
- Loading branch information
1 parent
5ac03f4
commit f9da163
Showing
2 changed files
with
33 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters