module-federation /module-federation-examples
Implementation examples of module federation , by the creators of module federation
★ 6,148⑂ 1,803👁 65⑃ 3,633● 604▤ 0
+0
Daily
+0
Weekly
+6
Monthly
6,148
stars
1,803
forks
65
watchers
3,633
prs
604
issues
0
releases
README
Module Federation Examples This repository is to showcase examples of how Webpack 5's new Module Federation can be used. Module Federation Universe - Module federation enhances collections: Universe - Module Federation Docs: Module Federation Docs List of Examples Click here to see the detailed list of examples in this repo Full Examples List Check out our book | | We will be actively updating this book over the next year as we learn more about best practices and what issues people are running into with Module Federation, as well as with every release of Webpack as it moves towards a release candidate and release. So with your one purchase you are buying a whole year of updates. | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | Consultations | 1 Hour group consultation | \$100 | | ---------------------------------------------------------------------------------------------------------------- | ------------ | | 30 Min 1:1 consultation | \$60 | | 15 Min 1:1 consultation | \$30 | | Bespoke API modifications and hands on code | $300-$500/hr | Deploy with Zephyr Cloud Zephyr Cloud is a cloud deployment provider that integrates directly into your build with zero config. - Automatically deploys your federated applications during the build process - simply save your code and get a URL in seconds. - Works with Webpack, Vite, Rspack, and more. - Deploy using BYOC to any cloud provider. - Manages complex multi-artifact deployments across different release cadences, handles micro frontend dependency management automatically, and provides version rollback and roll-forward capabilities. Start for free today at zephyr-cloud.io. Notes The examples in this repository leverage pnpm and workspaces. To run from a git checkout locally, remove all of the proprietary example directories, ensure you have pnpm installed and run install pnpm i at the repo root. You can then run pnpm start from any of the non-proprietary examples. Some examples may use a different command such as "dev" or "serve". Module federation will work with any type of file that you're able to import, that Webpack understands how to process. It is not a JS only, or React only feature. Images, CSS, JSON, WASM, and anything else can be federated. Companies using Module Federati
Top issues
#4344[email protected] @module-federation/[email protected] error15 comments · 2025-03-27#4251Integrating React 17 Remote Entry MFE with Host Application React 18 11 comments · 2024-08-06#2219[Question] What's the best practices of shared dependencies?11 comments · 2022-08-24#3154Question: Can we have shell application using react 18 and remotes of different versions 16, 17, 189 comments · 2023-09-13#4271Dynamic shared runtime exposed with Store lost shared data8 comments · 2024-09-18#4407revalidate doesn't refresh server chunks without server restart7 comments · 2025-11-12#3536federated store example fails7 comments · 2024-01-13#3467How can I use mf in react with 「externals」?6 comments · 2023-12-08
Discussions
#4430What is the difference between these two sample code repositories?1 comments · 2026-09-18#4400Generate types that related to exposed modules only1 comments · 2025-09-30#4379How to Use createInstance for Pure Runtime-only Setup? Example Needed (Shared Scope Always Empty)1 comments · 2025-09-16#4373HMR Error: "Cannot set properties of undefined" despite hot reload working2 comments · 2025-09-03#4356How to build webpack(host) + vite(remote) correctly ?0 comments · 2025-07-16#4355Shared package between two remote app.0 comments · 2025-06-13#4340Module Federation not working in production.0 comments · 2025-02-21#4328Integrating Angular Modules into React.js Applications Using Module Federation1 comments · 2025-01-06