genSourceMapUrl() — vite Function Reference
Architecture documentation for the genSourceMapUrl() function in sourcemap.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 0857a370_8db0_3f2b_ac58_b48c57bd6a12["genSourceMapUrl()"] 18244f7c_8357_ba88_c896_32c6447f1faf["sourcemap.ts"] 0857a370_8db0_3f2b_ac58_b48c57bd6a12 -->|defined in| 18244f7c_8357_ba88_c896_32c6447f1faf 6d315957_5b5c_845c_10c4_b8cb46bc58eb["buildImportAnalysisPlugin()"] 6d315957_5b5c_845c_10c4_b8cb46bc58eb -->|calls| 0857a370_8db0_3f2b_ac58_b48c57bd6a12 0d5a3ce6_a346_6e0c_cb12_77d5afc6444c["getCodeWithSourcemap()"] 0d5a3ce6_a346_6e0c_cb12_77d5afc6444c -->|calls| 0857a370_8db0_3f2b_ac58_b48c57bd6a12 37c7e77b_d40c_df6e_62db_77d0ac97c34a["inlineSourceMap()"] 37c7e77b_d40c_df6e_62db_77d0ac97c34a -->|calls| 0857a370_8db0_3f2b_ac58_b48c57bd6a12 style 0857a370_8db0_3f2b_ac58_b48c57bd6a12 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/sourcemap.ts lines 86–91
export function genSourceMapUrl(map: SourceMap | string): string {
if (typeof map !== 'string') {
map = JSON.stringify(map)
}
return `data:application/json;base64,${Buffer.from(map).toString('base64')}`
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does genSourceMapUrl() do?
genSourceMapUrl() is a function in the vite codebase, defined in packages/vite/src/node/server/sourcemap.ts.
Where is genSourceMapUrl() defined?
genSourceMapUrl() is defined in packages/vite/src/node/server/sourcemap.ts at line 86.
What calls genSourceMapUrl()?
genSourceMapUrl() is called by 3 function(s): buildImportAnalysisPlugin, getCodeWithSourcemap, inlineSourceMap.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free