fix: stale @tailwindcss/postcss output when input CSS changes without file mtime update#20339
fix: stale @tailwindcss/postcss output when input CSS changes without file mtime update#20339deepshekhardas wants to merge 6 commits into
Conversation
… its mtime is unchanged
This information is already scoped to a `CacheEntry`
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe Tailwind PostCSS plugin now caches the last processed input CSS and triggers a full rebuild when the current CSS differs, in addition to dependency mtime checks. Tests add a shared PostCSS execution helper and cover concurrent builds and repeated processing with changed CSS input and a stable source path. The changelog documents the fix. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches⚔️ Resolve merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Confidence Score: 5/5Safe to merge; the change is narrowly scoped to the cache invalidation path and does not touch the compilation or output generation logic. The fix adds a string comparison of the raw input CSS after the existing mtime loop, updating the stored value and promoting to a full rebuild only when the content has changed. The initialization value '' interacts safely with the first-build path because the mtime check independently forces rebuildStrategy = 'full' on a fresh cache entry. Error recovery (compiler = null) remains correct since the compiler is always reset before inputCss is consulted on the next call. The new regression test directly exercises the reported scenario with a stable on-disk mtime, and the helper refactoring is a straightforward cleanup with no behavioral change. No files require special attention. Reviews (1): Last reviewed commit: "rename `cachedInputCss` to `inputCss`" | Re-trigger Greptile |
Cherry-pick of PR #20310