(resourceId: string, opts: LoaderOptions)
| 45 | } |
| 46 | |
| 47 | function getContextFromCache(resourceId: string, opts: LoaderOptions): CacheEntry { |
| 48 | let key = getCacheKey(resourceId, opts) |
| 49 | if (cache.has(key)) return cache.get(key)! |
| 50 | let entry: CacheEntry = { |
| 51 | mtimes: new Map<string, number>(), |
| 52 | compiler: null, |
| 53 | scanner: null, |
| 54 | candidates: new Set<string>(), |
| 55 | fullRebuildPaths: [], |
| 56 | } |
| 57 | cache.set(key, entry) |
| 58 | return entry |
| 59 | } |
| 60 | |
| 61 | export default async function tailwindLoader( |
| 62 | this: LoaderContext<LoaderOptions>, |
no test coverage detected