toSourceMap() — tailwindcss Function Reference
Architecture documentation for the toSourceMap() function in source-maps.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD e4e9a023_fc41_d8d4_832c_c267a305bdbd["toSourceMap()"] 323aa9eb_b53c_c01f_935e_081c8e055a5f["serializeSourceMap()"] e4e9a023_fc41_d8d4_832c_c267a305bdbd -->|calls| 323aa9eb_b53c_c01f_935e_081c8e055a5f style e4e9a023_fc41_d8d4_832c_c267a305bdbd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-node/src/source-maps.ts lines 45–60
export function toSourceMap(map: DecodedSourceMap | string): SourceMap {
let raw = typeof map === 'string' ? map : serializeSourceMap(map)
function comment(url: string) {
return `/*# sourceMappingURL=${url} */\n`
}
return {
raw,
get inline() {
let inlined = Buffer.from(raw, 'utf-8').toString('base64')
return comment(`data:application/json;base64,${inlined}`)
},
comment,
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does toSourceMap() do?
toSourceMap() is a function in the tailwindcss codebase.
What does toSourceMap() call?
toSourceMap() calls 1 function(s): serializeSourceMap.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free