Post

The Vite plugin is now the official recommendation for Module Federation with Vite! github.com/module-federation/vite What happened? We spent months exploring built-in MF support in Rolldown, even reimplemented MF 2.0 from scratch for both Rolldown and Vite. What...

github.comGitHub - module-federation/vite: Vite Plugin for Module FederationVite Plugin for Module Federation . Contribute to module-federation/vite development by creating an account on GitHub.

15 reposts64 likes

...we learned is that not only the scope is huge, but that most MF features inevitably live in the JS plugin layer and not the bundler. Meanwhile, @gioboa.bsky.social had already shipped full Vite 7/8 support in module-federation/vite.

In collaboration with @shulaoda, @nst.blue, @2hea1, and Zack Chapple, more bug fixes and examples have been added. Instead of duplicating effort, we're going all-in on collaboration instead.

But: If there are blocking things in the bundler, we are happy to help fix them. What we won't do is building a separate MF implementation in Rolldown.

No way! Y'all have HMR now? This is very timely, Rspack has been alright for me but the ecosystem I'm in (especially Cloudflare) seems to much prefer Vite. It's also more likely I'd recommend Vite at work for general ecosystem maturity (maybe we can finally move off Piral...)