Page reload not working for ?raw CSS imports #16396
Labels
feat: css
feat: hmr
p3-minor-bug
An edge case that only affects very specific usage (priority)
regression
The issue only appears after a new release
Describe the bug
The title says it really; page reload appears to have stopped working in Vite 5 for
?raw
CSS (and possibly other) imports. I checked back and it is working in the latest v4 but looks to have stopped in v5. I've created a couple of projects on StackBlitz to show it working in v4 and not in v5 (remove commented outbackground-color
onbody
and save).We're using the imports to pull related CSS into (Lit) web components, which we've done purely to keep the JS/CSS separate and make things easier to work with. Any help will be much appreciated, as is all your hard work to date. Many thanks!
Reproduction
https://stackblitz.com/edit/vitejs-vite-qfytfv?file=style.css
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: