tailwindcss/integrations
Philipp Spiess fac8f7df62
Vite: Emit build dependencies on partial rebuilds (#17347)
Closes #17339

This PR fixes an issue that caused changes to `@import`-ed CSS files to
no longer rebuild the stylesheet after a change was made to a template
file.

The change in the template file causes a fast-path in the Vite plugin
now after changes in 4.0.8: _partial rebuilds_. For that branch we do
not need to re-evaluate your input CSS since we know only the candidate
list changed. However, we still need to emit all build dependencies as
via `addWatchFile(…)`, otherwise Vite will not correctly register
updates for these dependencies anymore.

## Test plan

- Updated the kitchen-sink Vite update tests to ensure that an
`@import`-ed CSS file can be updated even after a partial rebuild.
- Ensure this works in our Vite playground
2025-03-24 11:54:55 +01:00
..
cli Ensure that the CSS file rebuilds if a new CSS variable is used from templates (#17301) 2025-03-20 12:52:02 +01:00
postcss Enable URL rewriting for PostCSS (#16965) 2025-03-07 12:18:10 +01:00
upgrade Handle BOM (#16800) 2025-02-25 16:07:16 +01:00
vite Vite: Emit build dependencies on partial rebuilds (#17347) 2025-03-24 11:54:55 +01:00
workers Fix segmentation fault when loading @tailwindcss/oxide in a Worker thread (#17276) 2025-03-18 16:28:20 -04:00
package.json Update fast-glob 3.3.2 → 3.3.3 (patch) (#15607) 2025-01-13 11:11:35 +01:00
utils.ts Handle BOM (#16800) 2025-02-25 16:07:16 +01:00
vitest.config.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00