(id: string)
| 2344 | } |
| 2345 | } |
| 2346 | function removeGraphModule(id: string) { |
| 2347 | if (!graph.has(id)) return; |
| 2348 | graph.delete(id); |
| 2349 | graphVersion++; |
| 2350 | emitDelta([], [id]); |
| 2351 | } |
| 2352 | async function populateInitialGraph(server: ViteDevServer) { |
| 2353 | if (graph.size) return; // already populated |
| 2354 | const root = server.config.root || process.cwd(); |