Commit f7c4a4c
committed
fix(@angular/build): enhance Vitest resolution for optimal package loading
Align Vitest's module resolution with the development server to ensure consistent behavior.
This change configures Vitest to prioritize ESM-optimized package entry points by
setting 'es2020', 'module', and 'main' as main fields and 'es2015', 'es2020', and 'module'
as conditions during module resolution. This improves compatibility and performance
by utilizing modern JavaScript module formats where available.
(cherry picked from commit 9b5a452)1 parent 8d63d59 commit f7c4a4c
File tree
1 file changed
+4
-0
lines changed- packages/angular/build/src/builders/unit-test/runners/vitest
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
0 commit comments