MCPcopy
hub / github.com/vitejs/vite / _getModuleGraph

Method _getModuleGraph

packages/vite/src/node/server/mixedModuleGraph.ts:377–386  ·  view source on GitHub ↗

@internal

(environment: string)

Source from the content-addressed store, hash-verified

375
376 /** @internal */
377 _getModuleGraph(environment: string): EnvironmentModuleGraph {
378 switch (environment) {
379 case 'client':
380 return this._client
381 case 'ssr':
382 return this._ssr
383 default:
384 throw new Error(`Invalid module node environment ${environment}`)
385 }
386 }
387
388 invalidateModule(
389 mod: ModuleNode,

Callers 2

hasFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected