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

Method _getDefaultValue

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

Source from the content-addressed store, hash-verified

1231 }
1232
1233 private _getDefaultValue(
1234 chunk: RenderedChunk | OutputChunk | OutputAsset,
1235 ): ChunkMetadata | AssetMetadata {
1236 return chunk.type === 'chunk'
1237 ? {
1238 importedAssets: new Set(),
1239 importedCss: new Set(),
1240 // NOTE: adding this as a workaround for now ideally we'd want to remove this workaround
1241 // use shared `chunk.modules` object to allow mutation on js side plugins
1242 __modules: chunk.modules,
1243 }
1244 : {
1245 importedAssets: new Set(),
1246 importedCss: new Set(),
1247 }
1248 }
1249
1250 get(
1251 chunk: RenderedChunk | OutputChunk | OutputAsset,

Callers 2

getMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected