Skip to content

Instantly share code, notes, and snippets.

@kziemski
Forked from marcosmapf/index.js
Created October 24, 2025 21:16
Show Gist options
  • Save kziemski/e0d78b3760c52118275c5f685d258e63 to your computer and use it in GitHub Desktop.
Save kziemski/e0d78b3760c52118275c5f685d258e63 to your computer and use it in GitHub Desktop.
UMD / Module Federated App's entrypoint file
/*
* 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