_getDefaultValue() — vite Function Reference
Architecture documentation for the _getDefaultValue() function in build.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD b530eca3_f288_ee9d_6640_7a355c8bbb90["_getDefaultValue()"] 5f248dff_9bc5_81c9_2fb1_99ac1026a9ef["ChunkMetadataMap"] b530eca3_f288_ee9d_6640_7a355c8bbb90 -->|defined in| 5f248dff_9bc5_81c9_2fb1_99ac1026a9ef 51afdf58_3045_64b1_cf5b_929b1091e877["get()"] 51afdf58_3045_64b1_cf5b_929b1091e877 -->|calls| b530eca3_f288_ee9d_6640_7a355c8bbb90 2d80d05c_e180_bb95_94ab_4eb9d9abe3e2["reset()"] 2d80d05c_e180_bb95_94ab_4eb9d9abe3e2 -->|calls| b530eca3_f288_ee9d_6640_7a355c8bbb90 style b530eca3_f288_ee9d_6640_7a355c8bbb90 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/build.ts lines 1196–1211
private _getDefaultValue(
chunk: RenderedChunk | OutputChunk | OutputAsset,
): ChunkMetadata | AssetMetadata {
return chunk.type === 'chunk'
? {
importedAssets: new Set(),
importedCss: new Set(),
// NOTE: adding this as a workaround for now ideally we'd want to remove this workaround
// use shared `chunk.modules` object to allow mutation on js side plugins
__modules: chunk.modules,
}
: {
importedAssets: new Set(),
importedCss: new Set(),
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does _getDefaultValue() do?
_getDefaultValue() is a function in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is _getDefaultValue() defined?
_getDefaultValue() is defined in packages/vite/src/node/build.ts at line 1196.
What calls _getDefaultValue()?
_getDefaultValue() is called by 2 function(s): get, reset.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free