toSourceMap() — tailwindcss Function Reference
Architecture documentation for the toSourceMap() function in source-maps.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ce779092_6c9e_8967_9d8c_36d0185e635f["toSourceMap()"] 6219568c_788d_e9f4_1518_104d7994cc7f["source-maps.ts"] ce779092_6c9e_8967_9d8c_36d0185e635f -->|defined in| 6219568c_788d_e9f4_1518_104d7994cc7f 56d3a31c_766c_2efe_bb76_f83a24b56549["serializeSourceMap()"] ce779092_6c9e_8967_9d8c_36d0185e635f -->|calls| 56d3a31c_766c_2efe_bb76_f83a24b56549 style ce779092_6c9e_8967_9d8c_36d0185e635f 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, defined in packages/@tailwindcss-node/src/source-maps.ts.
Where is toSourceMap() defined?
toSourceMap() is defined in packages/@tailwindcss-node/src/source-maps.ts at line 45.
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