UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

33 lines (31 loc) 544 B
// src/bundlers/shared/cache.ts async function processCachedTask({ cache, cacheKey, hashKey = cacheKey, rawSource, readCache, applyResult, transform, onCacheHit }) { let cacheHit = false; const result = await cache.process({ key: cacheKey, hashKey, rawSource, resolveCache: readCache, async onCacheHit(value) { cacheHit = true; await applyResult(value); onCacheHit?.(); }, transform }); if (!cacheHit) { await applyResult(result); } } export { processCachedTask };