tailwindcss/integrations/vite
Philipp Spiess 3f434a6f00
Vite: Don't register the current CSS file as a dependency on itself (#17533)
Closes #17512

One of the changes of the Oxide API in 4.1 is that it now emits the
input CSS file itself as a dependency. This was fine in most of our
testing but it turns out that certain integrations (in this case a Qwik
project) don't like this and will silently crash with no CSS file being
added anymore.

This PR fixes this by making sure we don't add the input file as a
dependency on itself and also adds an integration test to ensure this
won't regress again.

## Test plan

- Tested with the repro provided in #17512
- Added a minimal integration test based on that reproduction that I
also validated will _fail_, if the fix is reverted.
2025-04-03 18:50:16 +02:00
..
astro.test.ts Don't use color-mix(…) on currentColor (#17247) 2025-03-17 13:23:02 +01:00
config.test.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00
css-modules.test.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00
html-style-blocks.test.ts Vite: Transform <style> blocks in html files (#16069) 2025-01-31 14:26:45 +00:00
ignored-packages.test.ts Do not scan tailwind-merge sources for candidates (#16005) 2025-01-29 17:32:06 +01:00
index.test.ts Vite: Emit build dependencies on partial rebuilds (#17347) 2025-03-24 11:54:55 +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
nuxt.test.ts Fix integration tests for Windows (#16693) 2025-02-20 17:50:50 +01:00
other-transforms.test.ts Make @reference emit variable fallbacks instead of CSS variable declarations (#16774) 2025-02-25 11:36:43 +01:00
qwik.test.ts Vite: Don't register the current CSS file as a dependency on itself (#17533) 2025-04-03 18:50:16 +02:00
react-router.test.ts Vite: Remove module-graph scanner (#16631) 2025-02-20 15:23:44 +01:00
resolvers.test.ts Make @reference emit variable fallbacks instead of CSS variable declarations (#16774) 2025-02-25 11:36:43 +01:00
solidstart.test.ts Fix Vite issues with SolidStart (#16052) 2025-01-30 16:58:20 +01:00
ssr.test.ts Vite: Remove module-graph scanner (#16631) 2025-02-20 15:23:44 +01:00
svelte.test.ts Improve compatibility with Safari 15 (#17435) 2025-04-01 13:33:22 +02:00
url-rewriting.test.ts Enable URL rewriting for PostCSS (#16965) 2025-03-07 12:18:10 +01:00
virtual-modules.test.ts Vite: Don't crash with virtual module dependencies (#16780) 2025-02-25 11:29:58 +01:00
vue.test.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00