Is there a guide for how to use React Bridge for Webpack based Applications? #3559
Unanswered
qureshiather
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are currently using Module Federation enhanced.
We use the build plugin in our webpack config, to consume and provide remote modules.
And then at runtime, we use the
registerRemote
and then theloadRemote
, to load components.We have an abstraction that we use where developers can pass the manifest url and the module name, and we load it using the above functions. This has been working for us.
However, I have been trying to use the Bridge Component documentation specified here and I have been running to issues
https://module-federation.io/practice/bridge/react-bridge.html
Our use case is that we want to upgrade remote applications to React 17 while the host app is on React 16.
The documentation is using rsbuild, but there is also this plugin, which I don't know what it is for.
https://www.npmjs.com/package/@module-federation/bridge-react-webpack-plugin, it has a ReactBridgeAliasChangerPlugin
And this guide:
https://alexocallaghan.com/upgrading-react-with-microfrontends
Has anyone successfully used Webpack and bridge together? I am very confused on what to do.
Beta Was this translation helpful? Give feedback.
All reactions