Skip to content
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

[Feature]: Additional hooks for HotModuleReplacementPlugin #9409

Open
niksy opened this issue Feb 20, 2025 · 0 comments
Open

[Feature]: Additional hooks for HotModuleReplacementPlugin #9409

niksy opened this issue Feb 20, 2025 · 0 comments
Labels
pending triage The issue/PR is currently untouched.

Comments

@niksy
Copy link

niksy commented Feb 20, 2025

What problem does this feature solve?

Currently there are some weird open issues regarding using Vue and HMR:

vue-loader seems like it’s in a low priority maintenance mode and there aren’t any signals or activity from core maintainers on long standing issues. Everything seems focused on Vite support and it’s a shame that crucial element for Vue usage in Rspack/Rsbuild is left to unmaintained dependancy.

If Rspack and Rsbuild can use Vite implementation as opposed to unmaintained vue-loader implementation, a lot of the weird issues and bugs could be fixed. If Unplugin version is used, only HMR support is current blocker AFAIK.

If this component can be switched to unplugin-vue, I think Rspack/Rsbuild could benefit from that, and this will also affect other parts such as Nuxt, greater adoption rate, etc.

@9aoy mentioned that for Unplugin/Vite version to be used as default there would need to be some hooks inside HMR plugin so it can reuse that implementation.

What does the proposed API of configuration look like?

Something that works similar to handleHotUpdate in Vite. This could also increase adoption of other Vite or Unplugin specific plugins which have HMR support integrated.

@niksy niksy added the pending triage The issue/PR is currently untouched. label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

1 participant