get() — vite Function Reference
Architecture documentation for the get() function in build.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 51afdf58_3045_64b1_cf5b_929b1091e877["get()"] 5f248dff_9bc5_81c9_2fb1_99ac1026a9ef["ChunkMetadataMap"] 51afdf58_3045_64b1_cf5b_929b1091e877 -->|defined in| 5f248dff_9bc5_81c9_2fb1_99ac1026a9ef b2845655_f75f_18a4_fb50_94d0f40983fe["wrapHookObject()"] b2845655_f75f_18a4_fb50_94d0f40983fe -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 cc503659_fea6_f7a4_0eca_f9b89ae2eb3a["injectChunkMetadata()"] cc503659_fea6_f7a4_0eca_f9b89ae2eb3a -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 8d2a4ec7_9ff4_4748_5388_bbb3eedb7eb2["injectSsrFlag()"] 8d2a4ec7_9ff4_4748_5388_bbb3eedb7eb2 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 16a00926_f0e9_60f1_3006_9132a6d78745["perEnvironmentState()"] 16a00926_f0e9_60f1_3006_9132a6d78745 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 edf78a01_8215_eb46_3896_3db717c46747["renderAssetUrlInJS()"] edf78a01_8215_eb46_3896_3db717c46747 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 2b04bf20_6455_3250_24f8_b60c71116be3["assetPlugin()"] 2b04bf20_6455_3250_24f8_b60c71116be3 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 71dec115_d158_88cc_30df_cc6b80969501["getPublicAssetFilename()"] 71dec115_d158_88cc_30df_cc6b80969501 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 0d5e9fd7_88bb_e8eb_37e0_dee52752ef34["publicFileToBuiltUrl()"] 0d5e9fd7_88bb_e8eb_37e0_dee52752ef34 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 86195de2_9c12_1f7e_7a3e_0754a5695ebe["fileToBuiltUrl()"] 86195de2_9c12_1f7e_7a3e_0754a5695ebe -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 cd131d16_e223_ab79_1b7c_8ea449ae51a2["cssPostPlugin()"] cd131d16_e223_ab79_1b7c_8ea449ae51a2 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 946fc4c1_3a7b_9d6a_6a0f_ab4355ad25c9["cssAnalysisPlugin()"] 946fc4c1_3a7b_9d6a_6a0f_ab4355ad25c9 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 40ac1f90_7a40_f7a5_f25c_701a010aa803["getAtImportResolvers()"] 40ac1f90_7a40_f7a5_f25c_701a010aa803 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 4c8f6d74_d3d3_58db_32d0_15e3a669dc14["preprocessCSS()"] 4c8f6d74_d3d3_58db_32d0_15e3a669dc14 -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877 style 51afdf58_3045_64b1_cf5b_929b1091e877 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/build.ts lines 1213–1221
get(
chunk: RenderedChunk | OutputChunk | OutputAsset,
): ChunkMetadata | AssetMetadata {
const key = this._getKey(chunk)
if (!this._inner.has(key)) {
this._inner.set(key, this._getDefaultValue(chunk))
}
return this._inner.get(key)!
}
Domain
Subdomains
Defined In
Called By
- addToHTMLProxyCache()
- assetPlugin()
- buildHtmlPlugin()
- buildImportAnalysisPlugin()
- bundleWorkerEntry()
- convertTargets()
- cssAnalysisPlugin()
- cssPostPlugin()
- delete()
- emptyDir()
- fileToBuiltUrl()
- getAtImportResolvers()
- getEntryFilenameFromHash()
- getPublicAssetFilename()
- getWorkerBundle()
- htmlInlineProxyPlugin()
- injectChunkMetadata()
- injectSsrFlag()
- instantiateFromUrl()
- isBuiltin()
- perEnvironmentState()
- preprocessCSS()
- publicFileToBuiltUrl()
- removeBundle()
- renderAssetUrlInJS()
- resolvePostcssConfig()
- saveAsset()
- setupIfNeeded()
- setupRollupOptionCompat()
- webWorkerPlugin()
- workerFileToUrl()
- wrapHookObject()
Source
Frequently Asked Questions
What does get() do?
get() is a function in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is get() defined?
get() is defined in packages/vite/src/node/build.ts at line 1213.
What does get() call?
get() calls 2 function(s): _getDefaultValue, _getKey.
What calls get()?
get() is called by 32 function(s): addToHTMLProxyCache, assetPlugin, buildHtmlPlugin, buildImportAnalysisPlugin, bundleWorkerEntry, convertTargets, cssAnalysisPlugin, cssPostPlugin, and 24 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free