getContextFromCache() — tailwindcss Function Reference
Architecture documentation for the getContextFromCache() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 6e4ecc38_77b9_08dd_6c29_11df55cb4196["getContextFromCache()"] 9e631077_170a_b3c6_dd44_1eb8a56fe3eb["tailwindLoader()"] 9e631077_170a_b3c6_dd44_1eb8a56fe3eb -->|calls| 6e4ecc38_77b9_08dd_6c29_11df55cb4196 style 6e4ecc38_77b9_08dd_6c29_11df55cb4196 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-webpack/src/index.ts lines 43–55
function getContextFromCache(inputFile: string, opts: LoaderOptions): CacheEntry {
let key = `${inputFile}:${opts.base ?? ''}:${JSON.stringify(opts.optimize)}`
if (cache.has(key)) return cache.get(key)!
let entry: CacheEntry = {
mtimes: new Map<string, number>(),
compiler: null,
scanner: null,
candidates: new Set<string>(),
fullRebuildPaths: [],
}
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): tailwindLoader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free