You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating a composed CSS Module file, HMR doesn't get triggered. Since the file change isn't detected, refreshing the page doesn't work either—the server must be restarted.
This is fixed by #16018, but wanted to file it for tracking purposes since this seems like a pretty major issue that wasn't reported.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When updating a composed CSS Module file, HMR doesn't get triggered. Since the file change isn't detected, refreshing the page doesn't work either—the server must be restarted.
This is fixed by #16018, but wanted to file it for tracking purposes since this seems like a pretty major issue that wasn't reported.
Reproduction
https://stackblitz.com/edit/vitejs-vite-npddeu?file=src%2Fstyle.module.css,src%2Futils.module.css
Steps to reproduce
style.module.css
, uncomment L5 to confirm HMR works in an entry CSS Module fileutils.module.css
, uncomment L4 to see that HMR does not get triggeredSystem Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: