loadSync() — tailwindcss Function Reference
Architecture documentation for the loadSync() function in stylesheet.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ad6791c1_558e_31b6_3be7_e2ace1f1c4c9["loadSync()"] b9897393_3e36_7806_d172_b9debcd215f6["Stylesheet"] ad6791c1_558e_31b6_3be7_e2ace1f1c4c9 -->|defined in| b9897393_3e36_7806_d172_b9debcd215f6 6d7d3a7a_08dc_88e4_0b4a_9f563d66e582["analyze()"] 6d7d3a7a_08dc_88e4_0b4a_9f563d66e582 -->|calls| ad6791c1_558e_31b6_3be7_e2ace1f1c4c9 style ad6791c1_558e_31b6_3be7_e2ace1f1c4c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/stylesheet.ts lines 78–85
static loadSync(filepath: string) {
filepath = path.resolve(process.cwd(), filepath)
let css = fsSync.readFileSync(filepath, 'utf-8')
let root = postcss.parse(css, { from: filepath })
return new Stylesheet(root, filepath)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does loadSync() do?
loadSync() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/stylesheet.ts.
Where is loadSync() defined?
loadSync() is defined in packages/@tailwindcss-upgrade/src/stylesheet.ts at line 78.
What calls loadSync()?
loadSync() is called by 1 function(s): analyze.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free