Demo shop for the article You Might Not Need Module Federation: Orchestrate your Microfrontends at Runtime with Import Maps.
Node 18.12.0.
The project is using NPM workspaces and Nx.
t-shop
├─ mfs ⬅ microfrontends
│ ├─ product-buy-box
│ ├─ product-teaser
│ ├─ product-tile
│ ├─ shop-footer
│ └─ shop-header
├─ publisher ⬅ handles submission of assets
├─ resolver ⬅ stores and updates import map
└─ shell ⬅ host app
npm install
- Run Import Map Resolver in terminal 1
npm run start
- Build and publish microfrontends in terminal 2
npm run build
You can inspect current import map by calling: http://localhost:3000/api/