toSourceMap() — tailwindcss Function Reference
Architecture documentation for the toSourceMap() function in source-maps.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD e6a5f6a0_88ca_f7b2_ffff_670cf35fdba7["toSourceMap()"] 7aee1750_2c9b_68e2_d651_f79f92781488["source-maps.ts"] e6a5f6a0_88ca_f7b2_ffff_670cf35fdba7 -->|defined in| 7aee1750_2c9b_68e2_d651_f79f92781488 66271ff8_a237_5788_6be6_f8b875b50399["serializeSourceMap()"] e6a5f6a0_88ca_f7b2_ffff_670cf35fdba7 -->|calls| 66271ff8_a237_5788_6be6_f8b875b50399 style e6a5f6a0_88ca_f7b2_ffff_670cf35fdba7 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