Skip to content

Instantly share code, notes, and snippets.

@neenhouse
Created June 1, 2020 15:32
Show Gist options
  • Select an option

  • Save neenhouse/ec4f3a2c10b9fa2505525862bbae01f8 to your computer and use it in GitHub Desktop.

Select an option

Save neenhouse/ec4f3a2c10b9fa2505525862bbae01f8 to your computer and use it in GitHub Desktop.
Federated AppShell
module.exports = {
// ...
plugins: [
new ModuleFederationPlugin({
name: 'property',
library: {type: 'var', name: 'property'},
filename: 'remoteEntry.js',
remotes: {
appshell: 'appshell'
},
exposes: {},
shared: ['react', 'react-dom', 'react-router-dom'],
}),
],
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment