| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example demonstrates how the Module Federation single runtime plugin works to ensure shared dependencies use a single runtime instance when a remote application loads components from its host.
# In app1 directory
npm start # Runs on port 3001
# In app2 directory
npm start # Runs on port 3002When you browse to localhost:3001, observe the Runtime Information section:
When you browse to localhost:3002, observe the Runtime Information section:
The single runtime plugin prevents runtime conflicts by:
When a remote app loads components from its host:
When loading other remotes:
Both apps share:
The single runtime plugin ensures these shared dependencies maintain their singleton status by preventing duplicate runtime loading from the same build. Also prevents collisions caused by loading 2 runtimes from the same build at once
| Back | FazBrowse Home | New Git URL |