Skip to content

Is there a guide for how to use React Bridge for Webpack based Applications? #3559

Closed Answered by qureshiather
qureshiather asked this question in Q&A
Discussion options

You must be logged in to vote

We got this working, sharing the solution here to give back.

This is our Host Application's Build Configuration:
"@module-federation/bridge-react": "0.11.1",
"@module-federation/enhanced": "0.11.1",
"@module-federation/retry-plugin": "^0.11.1",
"@module-federation/webpack-bundler-runtime": "0.11.1",

        new ModuleFederationPlugin({
            name: 'xXXXXXX',
            experiments: {
                asyncStartup: true,
            },
            shared: {
                react: {
                    import: 'react',
                    shareKey: 'react',
                    singleton: true,
                    requiredVersion: deps.react,
                },
                'react-d…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ScriptedAlchemy
Comment options

@qureshiather
Comment options

Comment options

You must be logged in to vote
1 reply
@ScriptedAlchemy
Comment options

Answer selected by qureshiather
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