Created
June 1, 2020 15:32
-
-
Save neenhouse/ec4f3a2c10b9fa2505525862bbae01f8 to your computer and use it in GitHub Desktop.
Federated AppShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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