Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callstack-bot/4be57c16c85df2173015c693bb1566a0 to your computer and use it in GitHub Desktop.
Save callstack-bot/4be57c16c85df2173015c693bb1566a0 to your computer and use it in GitHub Desktop.
new Repack.plugins.ModuleFederationPlugin({
name: 'module1',
exposes: {
'./Root': './src/Root.tsx',
'./baz': './src/baz.ts',
},
shared: {
react: {
...Repack.Federated.SHARED_REACT,
eager: STANDALONE,
},
'react-native': {
...Repack.Federated.SHARED_REACT_NATIVE,
eager: STANDALONE,
requiredVersion: '0.68.2',
},
},
remotes: {
app1: 'app1@dynamic',
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment