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

Method reset

packages/vite/src/node/build.ts:1261–1267  ·  view source on GitHub ↗
(chunk: RenderedChunk | OutputChunk | OutputAsset)

Source from the content-addressed store, hash-verified

1259
1260 // reset chunk metadata on the first RenderChunk call for watch mode
1261 reset(chunk: RenderedChunk | OutputChunk | OutputAsset): void {
1262 const key = this._getKey(chunk)
1263 if (this._resetChunks.has(key)) return
1264
1265 this._resetChunks.add(key)
1266 this._inner.set(key, this._getDefaultValue(chunk))
1267 }
1268
1269 clearResetChunks(): void {
1270 this._resetChunks.clear()

Callers 4

cli.tsFile · 0.80
injectChunkMetadataFunction · 0.80
transformFunction · 0.80
generateBundleFunction · 0.80

Calls 5

_getKeyMethod · 0.95
_getDefaultValueMethod · 0.95
hasMethod · 0.80
addMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected