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

Method set

packages/vite/src/node/server/bundledDev.ts:51–53  ·  packages/vite/src/node/server/bundledDev.ts::MemoryFiles.set
(file: string, content: MemoryFile | (() => MemoryFile))

Source from the content-addressed store, hash-verified

49 }
50
51 set(file: string, content: MemoryFile | (() => MemoryFile)): void {
52 this.files.set(file, content)
53 }
54
55 has(file: string): boolean {
56 return this.files.has(file)

Callers 15

renderStartFunction · 0.45
renderChunkFunction · 0.45
transformIndexHtmlFunction · 0.45
buildPolyfillChunkFunction · 0.45
client.tsFile · 0.45
updateStyleFunction · 0.45
ensureModuleMethod · 0.45
cachedModuleMethod · 0.45
constructorMethod · 0.45
disposeMethod · 0.45
pruneMethod · 0.45
addToMapMethod · 0.45

Calls

no outgoing calls

Tested by 4

createWorkerTransportFunction · 0.36
editFileFunction · 0.36
serveFunction · 0.36
serveFunction · 0.36