| 19 | const DEBUG = env.DEBUG |
| 20 | |
| 21 | interface CacheEntry { |
| 22 | mtimes: Map<string, number> |
| 23 | compiler: null | ReturnType<typeof compileAst> |
| 24 | scanner: null | Scanner |
| 25 | tailwindCssAst: AstNode[] |
| 26 | cachedPostCssAst: Root |
| 27 | optimizedPostCssAst: Root |
| 28 | fullRebuildPaths: string[] |
| 29 | } |
| 30 | const cache = new QuickLRU<string, CacheEntry>({ maxSize: 50 }) |
| 31 | |
| 32 | function getContextFromCache(postcss: Postcss, inputFile: string, opts: PluginOptions): CacheEntry { |
nothing calls this directly
no outgoing calls
no test coverage detected