tailwindcss/integrations/postcss
Philipp Spiess 4200a1ecc4
Fix slow incremental builds (especially on Windows) (#17511)
This PR fixes slow rebuilds on Windows where rebuilds go from ~2s to
~20ms.

Fixes: #16911
Fixes: #17522

## Test plan

1. Tested it on a reproduction with the following results:

Before:


https://github.com/user-attachments/assets/10c5e9e0-3c41-4e1d-95f6-ee8d856577ef

After:


https://github.com/user-attachments/assets/2c7597e9-3fff-4922-a2da-a8d06eab9047

Zooming in on the times, it looks like this:
<img width="674" alt="image"
src="https://github.com/user-attachments/assets/85eee69c-bbf6-4c28-8ce3-6dcdad74be9c"
/>

But with these changes:
<img width="719" alt="image"
src="https://github.com/user-attachments/assets/d89cefda-0711-4f84-bfaf-2bea11977bf7"
/>

We also tested this on Windows with the following results:
Before:
<img width="961" alt="image"
src="https://github.com/user-attachments/assets/3a42f822-f103-4598-9a91-e659ae09800c"
/>

After:
<img width="956" alt="image"
src="https://github.com/user-attachments/assets/05b6b6bc-d107-40d1-a207-3638aba3fc3a"
/>


[ci-all]

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2025-04-03 17:13:15 +02:00
..
config.test.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00
core-as-postcss-plugin.test.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00
index.test.ts Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
multi-root.test.ts Make @reference emit variable fallbacks instead of CSS variable declarations (#16774) 2025-02-25 11:36:43 +01:00
next.test.ts Fix slow incremental builds (especially on Windows) (#17511) 2025-04-03 17:13:15 +02:00
plugins.test.ts Make @reference emit variable fallbacks instead of CSS variable declarations (#16774) 2025-02-25 11:36:43 +01:00
source.test.ts Use @layer properties for @property polyfills (#17506) 2025-04-02 18:16:28 +02:00
url-rewriting.test.ts Enable URL rewriting for PostCSS (#16965) 2025-03-07 12:18:10 +01:00