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