serializeSourceMap() — tailwindcss Function Reference
Architecture documentation for the serializeSourceMap() function in source-maps.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD a661fa3d_ae92_9ae8_e742_9b48cdfdd156["serializeSourceMap()"] 43b2801c_3219_cfff_896d_761d438d49a1["toSourceMap()"] 43b2801c_3219_cfff_896d_761d438d49a1 -->|calls| a661fa3d_ae92_9ae8_e742_9b48cdfdd156 0aa64a1c_efd8_a69d_48ed_649b7a86c854["get()"] a661fa3d_ae92_9ae8_e742_9b48cdfdd156 -->|calls| 0aa64a1c_efd8_a69d_48ed_649b7a86c854 style a661fa3d_ae92_9ae8_e742_9b48cdfdd156 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-node/src/source-maps.ts lines 12–43
function serializeSourceMap(map: DecodedSourceMap): string {
let generator = new SourceMapGenerator()
let id = 1
let sourceTable = new DefaultMap<
DecodedSource | null,
{
url: string
content: string
}
>((src) => {
return {
url: src?.url ?? `<unknown ${id++}>`,
content: src?.content ?? '<none>',
}
})
for (let mapping of map.mappings) {
let original = sourceTable.get(mapping.originalPosition?.source ?? null)
generator.addMapping({
generated: mapping.generatedPosition,
original: mapping.originalPosition,
source: original.url,
name: mapping.name,
})
generator.setSourceContent(original.url, original.content)
}
return generator.toString()
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does serializeSourceMap() do?
serializeSourceMap() is a function in the tailwindcss codebase.
What does serializeSourceMap() call?
serializeSourceMap() calls 1 function(s): get.
What calls serializeSourceMap()?
serializeSourceMap() is called by 1 function(s): toSourceMap.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free