Commit 2fa21d7
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 126d0d3 commit 2fa21d7
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