Commit 4c0d873
committed
fix(@angular/build): include full metadata for AOT unit-testing
Include class metadata and JIT information in code built for development and/or test usage.
All non-optimized builds will now contain this metadata (`optimization.scripts` is false).
The Angular TestBed APIs require additional metadata for the Angular aspects of the application
such as Components, Modules, Pipes, etc.
TestBed may also leverage JIT capabilities during testing (e.g., overrideComponent).
To support all these TestBed usage scenarios both the underlying `setClassMetadata`
and `setNgModuleScope` class augmentation functions are now emitted when
test metadata inclusion is enabled.
(cherry picked from commit 578525e)1 parent b776d32 commit 4c0d873
File tree
1 file changed
+9
-1
lines changed- packages/angular/build/src/tools/esbuild/angular
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
92 | | - | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
718 | 725 | | |
719 | 726 | | |
720 | 727 | | |
| 728 | + | |
721 | 729 | | |
722 | 730 | | |
723 | 731 | | |
| |||
0 commit comments