parseSrcset() — tailwindcss Function Reference
Architecture documentation for the parseSrcset() function in urls.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 36f53dba_8fb3_38bc_2066_ea45f87b42e1["parseSrcset()"] 5d2447d2_283c_2afa_cd2e_53572764a710["processSrcSet()"] 5d2447d2_283c_2afa_cd2e_53572764a710 -->|calls| 36f53dba_8fb3_38bc_2066_ea45f87b42e1 style 36f53dba_8fb3_38bc_2066_ea45f87b42e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-node/src/urls.ts lines 174–186
function parseSrcset(string: string): ImageCandidate[] {
const matches = string
.trim()
.replace(escapedSpaceCharactersRE, ' ')
.replace(/\r?\n/, '')
.replace(/,\s+/, ', ')
.replaceAll(/\s+/g, ' ')
.matchAll(imageCandidateRE)
return Array.from(matches, ({ groups }) => ({
url: groups?.url?.trim() ?? '',
descriptor: groups?.descriptor?.trim() ?? '',
})).filter(({ url }) => !!url)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does parseSrcset() do?
parseSrcset() is a function in the tailwindcss codebase.
What calls parseSrcset()?
parseSrcset() is called by 1 function(s): processSrcSet.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free