-
-
Save kziemski/e0d78b3760c52118275c5f685d258e63 to your computer and use it in GitHub Desktop.
UMD / Module Federated App's entrypoint file
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
| /* | |
| * This file is imported as the entrypoint for the Module Federation or UMD bundle. | |
| * Exporting an async function as the project's entrypoint enables Module Federation Plugin to resolve the dependency tree | |
| * before the dependencies are actually used, which enables dependency sharing between modules | |
| */ | |
| export default props => { | |
| import('./bootstrap').then(({ default: bootstrap }) => bootstrap(props)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment