MCPcopy
hub / github.com/tailwindlabs/tailwindcss / getCacheKey

Function getCacheKey

packages/@tailwindcss-webpack/src/index.ts:43–45  ·  view source on GitHub ↗
(resourceId: string, opts: LoaderOptions)

Source from the content-addressed store, hash-verified

41const cache = new QuickLRU<string, CacheEntry>({ maxSize: 50 })
42
43function getCacheKey(resourceId: string, opts: LoaderOptions): string {
44 return `${resourceId}:${opts.base ?? ''}:${JSON.stringify(opts.optimize)}`
45}
46
47function getContextFromCache(resourceId: string, opts: LoaderOptions): CacheEntry {
48 let key = getCacheKey(resourceId, opts)

Callers 2

getContextFromCacheFunction · 0.85
tailwindLoaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected