Commit 53cfde2
Remove moduleGraphData reconstruction, rely on populated module graph
Instead of reconstructing ModuleGraphData from edges:
- Remove moduleGraphData building logic from readBlobs
- Remove moduleGraphData from MergedBlobs interface
- Remove moduleGraphData from state.blobs
- Revert setup.ts to let getModuleGraph run normally
- Module graph importers/importedModules are already populated from edges
- getModuleGraph() will work correctly with the populated module graph
This simplifies the code by letting existing functionality work
naturally with the properly populated module graph.
Co-authored-by: sheremet-va <[email protected]>1 parent ab910b1 commit 53cfde2
File tree
4 files changed
+10
-99
lines changed- packages/vitest/src
- api
- node
- reporters
- test/cli/test/reporters
4 files changed
+10
-99
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 150 | | |
158 | 151 | | |
159 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
546 | | - | |
| 545 | + | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 247 | | |
312 | 248 | | |
313 | 249 | | |
314 | 250 | | |
315 | 251 | | |
316 | | - | |
317 | 252 | | |
318 | 253 | | |
319 | 254 | | |
| |||
322 | 257 | | |
323 | 258 | | |
324 | 259 | | |
325 | | - | |
326 | 260 | | |
327 | 261 | | |
328 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
296 | 295 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 296 | + | |
309 | 297 | | |
310 | 298 | | |
311 | 299 | | |
| |||
324 | 312 | | |
325 | 313 | | |
326 | 314 | | |
327 | | - | |
| 315 | + | |
328 | 316 | | |
329 | 317 | | |
330 | 318 | | |
331 | 319 | | |
332 | 320 | | |
333 | 321 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 322 | | |
339 | 323 | | |
340 | 324 | | |
| |||
0 commit comments