getRunnerSourceMap() — vite Function Reference
Architecture documentation for the getRunnerSourceMap() function in interceptor.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 94a96327_7ba3_9fa8_c1c1_02a5f405e143["getRunnerSourceMap()"] 95cae2f2_ad8c_91c1_5a74_93d939dbc47b["interceptor.ts"] 94a96327_7ba3_9fa8_c1c1_02a5f405e143 -->|defined in| 95cae2f2_ad8c_91c1_5a74_93d939dbc47b f5792b49_242f_3f04_074c_c9ee1ff25728["mapSourcePosition()"] f5792b49_242f_3f04_074c_c9ee1ff25728 -->|calls| 94a96327_7ba3_9fa8_c1c1_02a5f405e143 e81a4d92_bae8_27e6_4a9c_4bd47c82e4ad["getModuleSourceMapById()"] 94a96327_7ba3_9fa8_c1c1_02a5f405e143 -->|calls| e81a4d92_bae8_27e6_4a9c_4bd47c82e4ad style 94a96327_7ba3_9fa8_c1c1_02a5f405e143 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/module-runner/sourcemap/interceptor.ts lines 104–116
function getRunnerSourceMap(position: OriginalMapping): CachedMapEntry | null {
for (const moduleGraph of evaluatedModulesCache) {
const sourceMap = moduleGraph.getModuleSourceMapById(position.source!)
if (sourceMap) {
return {
url: position.source,
map: sourceMap,
vite: true,
}
}
}
return null
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getRunnerSourceMap() do?
getRunnerSourceMap() is a function in the vite codebase, defined in packages/vite/src/module-runner/sourcemap/interceptor.ts.
Where is getRunnerSourceMap() defined?
getRunnerSourceMap() is defined in packages/vite/src/module-runner/sourcemap/interceptor.ts at line 104.
What does getRunnerSourceMap() call?
getRunnerSourceMap() calls 1 function(s): getModuleSourceMapById.
What calls getRunnerSourceMap()?
getRunnerSourceMap() is called by 1 function(s): mapSourcePosition.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free