Skip to content
Discussion options

You must be logged in to vote

Yes, this works. Rspack's Module Federation implementation is wire-compatible with Webpack 5's Module Federation — they both produce the same container protocol at runtime. So a Webpack host can consume Rspack remotes and vice versa.

A few things to keep in mind:

  1. Use the same MF plugin version. If you're using @module-federation/enhanced (the updated plugin), use it in both the host and remotes. If the host is on Webpack's built-in ModuleFederationPlugin, the Rspack remote should use rspack.container.ModuleFederationPlugin (the built-in one). Mixing @module-federation/enhanced on one side and the built-in plugin on the other can cause version negotiation issues.

  2. Shared dependencies ve…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nurbolnygmanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants