Awesome Open Source
Awesome Open Source

Module Federation Examples

This repository is to showcase examples of how Webpack 5's new Module Federation can be used.

If you need support, consider looking at my sponsor profile For companies that require consultations, contact me on twitter or email (on github profile)
Youtube Screencasts
Info site
Official Docs
Original Webpack Issue
Medium post
JSNation Presentation
Post about Dynamic Remotes

Check out our book

Practical Module Federation 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.


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



  • ⚠️: In Progress/Incomplete
  • 🔒: Depends on proprietary code that isn't free.


To run from a git checkout locally, remove all of the proprietary example directories and then run yarn at the repo root. You can then run yarn && yarn start from any of the non-proprietary examples.

Module federation will work with any type of file that youre able to import, that webpack underestands how to process. It is not a JS only, or react only feature. Images, CSS, JSON, WASM, and anything else can be federated.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,924) 
demo (507) 
nextjs (361) 
examples (203) 
module (143) 
federation (40) 
federated (16)