buildImportNodes() — tailwindcss Function Reference
Architecture documentation for the buildImportNodes() function in at-import.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 510b91a2_860c_62c6_54c4_43c0ad2f601c["buildImportNodes()"] 65cd5723_5f2b_da42_e83b_2add05ebc004["substituteAtImports()"] 65cd5723_5f2b_da42_e83b_2add05ebc004 -->|calls| 510b91a2_860c_62c6_54c4_43c0ad2f601c c35acfc6_964d_737e_6ecc_275e6f10293a["atRule()"] 510b91a2_860c_62c6_54c4_43c0ad2f601c -->|calls| c35acfc6_964d_737e_6ecc_275e6f10293a style 510b91a2_860c_62c6_54c4_43c0ad2f601c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/at-import.ts lines 150–178
function buildImportNodes(
importNode: AstNode,
importedAst: AstNode[],
layer: string | null,
media: string | null,
supports: string | null,
): AstNode[] {
let root = importedAst
if (layer !== null) {
let node = atRule('@layer', layer, root)
node.src = importNode.src
root = [node]
}
if (media !== null) {
let node = atRule('@media', media, root)
node.src = importNode.src
root = [node]
}
if (supports !== null) {
let node = atRule('@supports', supports[0] === '(' ? supports : `(${supports})`, root)
node.src = importNode.src
root = [node]
}
return root
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does buildImportNodes() do?
buildImportNodes() is a function in the tailwindcss codebase.
What does buildImportNodes() call?
buildImportNodes() calls 1 function(s): atRule.
What calls buildImportNodes()?
buildImportNodes() is called by 1 function(s): substituteAtImports.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free