We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72566eb commit 2d417eaCopy full SHA for 2d417ea
packages/vite/src/rpc/graph.ts
@@ -15,9 +15,15 @@ export function getGraphFunctions(ctx: RpcFunctionCtx) {
15
})
16
return {
17
async getGraphModules(): Promise<ModuleInfo[]> {
18
- const list = await rpc.list()
19
- const modules = list?.modules || []
20
-
+ const meta = await rpc.getMetadata()
+ const modules = (
+ meta
21
+ ? await rpc.getModulesList({
22
+ vite: meta?.instances[0].vite,
23
+ env: meta?.instances[0].environments[0],
24
+ })
25
+ : null
26
+ ) || []
27
return modules
28
},
29
}
0 commit comments