getSourceMapUrl() — vite Function Reference
Architecture documentation for the getSourceMapUrl() function in worker-sourcemap-hidden.spec.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 14f059c8_2b56_95d1_0a9d_73eddfe3ec25["getSourceMapUrl()"] 639165ff_0f43_44c0_d37a_c29c30a3f41f["worker-sourcemap-hidden.spec.ts"] 14f059c8_2b56_95d1_0a9d_73eddfe3ec25 -->|defined in| 639165ff_0f43_44c0_d37a_c29c30a3f41f style 14f059c8_2b56_95d1_0a9d_73eddfe3ec25 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/worker/__tests__/sourcemap-hidden/worker-sourcemap-hidden.spec.ts lines 118–126
function getSourceMapUrl(code: string): string {
const regex = /\/\/[#@]\ssource(?:Mapping)?URL=\s*(\S+)/
const results = regex.exec(code)
if (results && results.length >= 2) {
return results[1]
}
return null
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getSourceMapUrl() do?
getSourceMapUrl() is a function in the vite codebase, defined in playground/worker/__tests__/sourcemap-hidden/worker-sourcemap-hidden.spec.ts.
Where is getSourceMapUrl() defined?
getSourceMapUrl() is defined in playground/worker/__tests__/sourcemap-hidden/worker-sourcemap-hidden.spec.ts at line 118.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free