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

Method _set

packages/vite/src/node/server/mixedModuleGraph.ts:38–48  ·  view source on GitHub ↗
(
    prop: T,
    value: EnvironmentModuleNode[T],
  )

Source from the content-addressed store, hash-verified

36 return (this._clientModule?.[prop] ?? this._ssrModule?.[prop])!
37 }
38 _set<T extends keyof EnvironmentModuleNode>(
39 prop: T,
40 value: EnvironmentModuleNode[T],
41 ): void {
42 if (this._clientModule) {
43 this._clientModule[prop] = value
44 }
45 if (this._ssrModule) {
46 this._ssrModule[prop] = value
47 }
48 }
49
50 _wrapModuleSet(
51 prop: ModuleSetNames,

Callers 3

urlMethod · 0.95
idMethod · 0.95
fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected