Created
August 20, 2020 16:46
-
-
Save rogerluiz/8348b17e7a4b8497d1b55806f205d7b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| new ModuleFederationPlugin({ | |
| name: "app1", | |
| library: { type: "var", name: "app1" }, | |
| filename: "remoteEntry.js", | |
| exposes: { | |
| "./Widget": "./src/Widget", | |
| }, | |
| shared: { | |
| react: { | |
| import: "react", | |
| shareKey: "react", | |
| shareScope: "default", | |
| singleton: true, | |
| }, | |
| "react-dom": { | |
| singleton: true, | |
| }, | |
| "react-router-dom": { | |
| singleton: true, | |
| }, | |
| "styled-components": { | |
| singleton: true, | |
| } | |
| }, | |
| }), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment