Skip to content

Watching of rust files not working in Vite #41

@darichey

Description

@darichey

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: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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions