importModule() — tailwindcss Function Reference
Architecture documentation for the importModule() function in compile.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ed3d3d26_38f7_571e_0391_5348f28193a1["importModule()"] aee9f739_9a7b_d15f_6c82_a35dce42a8e6["loadModule()"] aee9f739_9a7b_d15f_6c82_a35dce42a8e6 -->|calls| ed3d3d26_38f7_571e_0391_5348f28193a1 style ed3d3d26_38f7_571e_0391_5348f28193a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-node/src/compile.ts lines 181–195
async function importModule(path: string): Promise<any> {
if (typeof globalThis.__tw_load === 'function') {
let module = await globalThis.__tw_load(path)
if (module) {
return module
}
}
try {
return await import(path)
} catch (error) {
jiti ??= createJiti(import.meta.url, { moduleCache: false, fsCache: false })
return await jiti.import(path)
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does importModule() do?
importModule() is a function in the tailwindcss codebase.
What calls importModule()?
importModule() is called by 1 function(s): loadModule.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free