Commit 7c0b0f1
committed
refactor(@angular/build): optimize Vitest plugin file loading and improve safety
This commit improves the performance of the Vitest plugin by reusing a single
`TextDecoder` instance for decoding memory files, avoiding repeated instantiation.
It also adds safety checks when accessing the resolved Vitest configuration to
prevent potential errors if the configuration is not yet fully initialized.1 parent 71529b1 commit 7c0b0f1
File tree
1 file changed
+4
-3
lines changed- packages/angular/build/src/builders/unit-test/runners/vitest
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
269 | | - | |
| 270 | + | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| |||
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
292 | | - | |
| 293 | + | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| |||
0 commit comments