analyzeImportPaths() — tailwindcss Function Reference
Architecture documentation for the analyzeImportPaths() function in stylesheet.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 097a5886_73fc_f3e3_8de2_3a76f018c380["analyzeImportPaths()"] c890fa7b_6e17_4e5d_74bf_b797d0f757b8["Stylesheet"] 097a5886_73fc_f3e3_8de2_3a76f018c380 -->|defined in| c890fa7b_6e17_4e5d_74bf_b797d0f757b8 60cad534_12fe_6e72_4bc7_443aad14536b["analyze()"] 60cad534_12fe_6e72_4bc7_443aad14536b -->|calls| 097a5886_73fc_f3e3_8de2_3a76f018c380 b3bea8bf_aced_dc7a_9ad8_9a35f737e64e["pathsToRoot()"] 097a5886_73fc_f3e3_8de2_3a76f018c380 -->|calls| b3bea8bf_aced_dc7a_9ad8_9a35f737e64e style 097a5886_73fc_f3e3_8de2_3a76f018c380 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/stylesheet.ts lines 222–243
analyzeImportPaths() {
let convertiblePaths: StylesheetConnection[][] = []
let nonConvertiblePaths: StylesheetConnection[][] = []
for (let path of this.pathsToRoot()) {
let isConvertible = false
for (let { meta } of path) {
for (let layer of meta.layers) {
isConvertible ||= layer === 'utilities' || layer === 'components'
}
}
if (isConvertible) {
convertiblePaths.push(path)
} else {
nonConvertiblePaths.push(path)
}
}
return { convertiblePaths, nonConvertiblePaths }
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does analyzeImportPaths() do?
analyzeImportPaths() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/stylesheet.ts.
Where is analyzeImportPaths() defined?
analyzeImportPaths() is defined in packages/@tailwindcss-upgrade/src/stylesheet.ts at line 222.
What does analyzeImportPaths() call?
analyzeImportPaths() calls 1 function(s): pathsToRoot.
What calls analyzeImportPaths()?
analyzeImportPaths() 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