Similar to Vite, Rsbuild could have easy HMR handling through some specific option. Maybe this is better implemented at lower level like Rspack and it’s exposed as option in Rsbuild.
This could also solve HMR implementation details in Unplugin scenarios such as Vue plugin HMR.
What does the proposed API look like?
Take a look at handleHotUpdate API for Vite. There are a few simple concepts that I think can be implemented in Rsbuild.
What problem does this feature solve?
Similar to Vite, Rsbuild could have easy HMR handling through some specific option. Maybe this is better implemented at lower level like Rspack and it’s exposed as option in Rsbuild.
This could also solve HMR implementation details in Unplugin scenarios such as Vue plugin HMR.
What does the proposed API look like?
Take a look at
handleHotUpdate
API for Vite. There are a few simple concepts that I think can be implemented in Rsbuild.