Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite: Don't register the current CSS file as a dependency on itself #17533

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

philipp-spiess
Copy link
Member

@philipp-spiess philipp-spiess commented Apr 3, 2025

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

@philipp-spiess philipp-spiess force-pushed the fix/vite-qwik-watcher branch from 87119e3 to 53a3eb3 Compare April 3, 2025 16:34
@philipp-spiess philipp-spiess force-pushed the fix/vite-qwik-watcher branch from 53a3eb3 to aaad9b0 Compare April 3, 2025 16:39
@philipp-spiess philipp-spiess marked this pull request as ready for review April 3, 2025 16:39
@philipp-spiess philipp-spiess requested a review from a team as a code owner April 3, 2025 16:39
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that the test fails without the fix and passes with the fix.

@RobinMalfait RobinMalfait merged commit 3f434a6 into main Apr 3, 2025
7 checks passed
@RobinMalfait RobinMalfait deleted the fix/vite-qwik-watcher branch April 3, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing global.css file when using Tailwindcss Vite plugin
3 participants