getContextFromCache() — tailwindcss Function Reference
Architecture documentation for the getContextFromCache() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 09da4ea0_1342_7e43_6bbe_0e38e16043d9["getContextFromCache()"] b43c8628_fc48_68ca_7913_f540a0f4bedd["index.ts"] 09da4ea0_1342_7e43_6bbe_0e38e16043d9 -->|defined in| b43c8628_fc48_68ca_7913_f540a0f4bedd ef038d5d_2221_6145_79b9_9bf2df640f3a["tailwindLoader()"] ef038d5d_2221_6145_79b9_9bf2df640f3a -->|calls| 09da4ea0_1342_7e43_6bbe_0e38e16043d9 style 09da4ea0_1342_7e43_6bbe_0e38e16043d9 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
Defined In
Called By
Source
Frequently Asked Questions
What does getContextFromCache() do?
getContextFromCache() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-webpack/src/index.ts.
Where is getContextFromCache() defined?
getContextFromCache() is defined in packages/@tailwindcss-webpack/src/index.ts at line 43.
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