-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Fails to hmr accept virtual modules #12912
Comments
Re-opening as fix is reverted in #13734 |
I think this should still be open? @bluwy ? |
I believe I've run into a similar issue, a virtual module has broken my build #16142 |
Please ignore everything I wrote below I turns out that in my Vite config I got confused between invalidating the server module, which leads to the transitive reloading that I observed below, and actively pushing an HMR update with If I push an HMR everything works as expected.
|
Describe the bug
I'm trying to hot reload a virtual module, but it doesn't seem to be able to accept it:
Reproduction
https://github.com/Janpot/vitejs-virtual-hmr
Steps to reproduce
yarn && yarn dev
http://localhost:3000
const mod = devServer.moduleGraph.getModuleById(path.resolve("./src/bar.js"));
I tried using
/@id/__x00__virtual:my-plugin:foo
, but that doesn't work neitherSystem Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: