getContextFromCache() — tailwindcss Function Reference
Architecture documentation for the getContextFromCache() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD c78ab683_6025_5887_816f_238f52c7b72d["getContextFromCache()"] f3a29437_b991_0a27_2561_a76b3f340642["tailwindcss()"] f3a29437_b991_0a27_2561_a76b3f340642 -->|calls| c78ab683_6025_5887_816f_238f52c7b72d style c78ab683_6025_5887_816f_238f52c7b72d 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
Called By
Source
Frequently Asked Questions
What does getContextFromCache() do?
getContextFromCache() is a function in the tailwindcss codebase.
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