getContextFromCache() — tailwindcss Function Reference
Architecture documentation for the getContextFromCache() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD db0a1c89_955b_8963_d8bc_904d275dbfa8["getContextFromCache()"] 2bc39c56_196b_12bc_1a08_0896427ab477["index.ts"] db0a1c89_955b_8963_d8bc_904d275dbfa8 -->|defined in| 2bc39c56_196b_12bc_1a08_0896427ab477 6d05b300_c6ad_6d9d_74a4_394205536160["tailwindcss()"] 6d05b300_c6ad_6d9d_74a4_394205536160 -->|calls| db0a1c89_955b_8963_d8bc_904d275dbfa8 style db0a1c89_955b_8963_d8bc_904d275dbfa8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-postcss/src/index.ts lines 32–48
function getContextFromCache(postcss: Postcss, inputFile: string, opts: PluginOptions): CacheEntry {
let key = `${inputFile}:${opts.base ?? ''}:${JSON.stringify(opts.optimize)}`
if (cache.has(key)) return cache.get(key)!
let entry = {
mtimes: new Map<string, number>(),
compiler: null,
scanner: null,
tailwindCssAst: [],
cachedPostCssAst: postcss.root(),
optimizedPostCssAst: postcss.root(),
fullRebuildPaths: [] as string[],
}
cache.set(key, entry)
return entry
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getContextFromCache() do?
getContextFromCache() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-postcss/src/index.ts.
Where is getContextFromCache() defined?
getContextFromCache() is defined in packages/@tailwindcss-postcss/src/index.ts at line 32.
What calls getContextFromCache()?
getContextFromCache() is called by 1 function(s): tailwindcss.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free