Implementation examples of module federation , by the creators of module federation
The Module Federation Examples repository showcases examples of how Webpack 5’s new Module Federation feature can be utilized to enhance collections. The repository includes documentation, examples, and consultations for users looking to leverage Module Federation in their projects. Additionally, the repository offers a book that will be regularly updated with best practices and issues related to Module Federation and Webpack releases over the next year.
To run the examples from the repository locally, follow these steps:
pnpm i at the repository root.pnpm start from any of the non-proprietary examples.
Note: Some examples may use different commands like “dev” or “serve”.The Module Federation Examples repository is a valuable resource for developers looking to explore and implement Webpack 5’s Module Federation feature. With a range of examples, documentation, and consultation services available, users can learn how to federate any type of file Webpack can process, not limited to just JavaScript or React files. Moreover, the repository showcases industry giants and companies already benefiting from Module Federation, making it a go-to for those interested in leveraging this feature in their projects.