We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using this plugin in Vite, modifying rust files does not trigger a reload. Here is a minimal repro: https://github.com/darichey/rollup-plugin-rust-watch-issue-demo
Using vite --debug, I can see this in the logs when modifying lib.rs:
vite --debug
lib.rs
vite:hmr [file change] src/lib.rs +5s vite:hmr [no modules matched] src/lib.rs +0ms
It's possible that this is a Vite issue. It seems related to vitejs/vite#7024.
The text was updated successfully, but these errors were encountered:
I ran into the same issue. As a workaround I added a handleHotUpdate hook to reload:
handleHotUpdate
let rustPluginInstance = rust(); rustPluginInstance["handleHotUpdate"] = (ctx) => { if (ctx.file.endsWith(".rs")) { console.log("Rust code changed"); ctx.server.restart(); } };
Sorry, something went wrong.
This is definitely a Vite bug. They claim that they fixed it, but it seems that it's not fixed.
No branches or pull requests
When using this plugin in Vite, modifying rust files does not trigger a reload. Here is a minimal repro: https://github.com/darichey/rollup-plugin-rust-watch-issue-demo
Using
vite --debug
, I can see this in the logs when modifyinglib.rs
:It's possible that this is a Vite issue. It seems related to vitejs/vite#7024.
The text was updated successfully, but these errors were encountered: