Skip to content

feat: HMR for Vite + Vite#471

Open
Staremang wants to merge 3 commits intomodule-federation:mainfrom
Staremang:feat/hmr
Open

feat: HMR for Vite + Vite#471
Staremang wants to merge 3 commits intomodule-federation:mainfrom
Staremang:feat/hmr

Conversation

@Staremang
Copy link

Summary

  • Add HMR support for remote modules in dev mode - when a remote's source files change, the host page updates automatically without a full page reload
  • Tested with both React and Vue projects
  • Add vue-vite-vite example project for testing Vue host/remote federation

Test

  • pnpm run dev-vv - edit examples/vite-vite/vite-remote/src/App1.jsx, verify host updates without reload (React)
  • pnpm run dev-vv-vue - edit examples/vue-vite-vite/vite-remote/src/Test.vue, verify host updates without reload (Vue)

I also tested this on our project.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@module-federation/vite@471

commit: ace2f62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant