You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leverages pre-release implementations of Webpack 5 Module Federation's new advanced API
3
+
Examples in this directory showcase early implementations of advanced Module Federation features. Each subfolder is a standalone example with its own documentation.
4
4
5
-
There are several configurations in here
5
+
## Available examples
6
6
7
-
- Dynamic Remotes
8
-
- The ability to dynamically load and share code between remotes that are unknown to the host at build time.
7
+
-[Automatic Vendor Sharing](./automatic-vendor-sharing/README.md) – automatically detect and share common dependencies across federated builds.
8
+
-[Dynamic Remotes](./dynamic-remotes/README.md) – dynamically load and share code from remotes that aren't known to the host at build time.
9
+
-[Dynamic Remotes with Runtime Environment Variables](./dynamic-remotes-runtime-environment-variables/README.md) – configure remote URLs via runtime-provided environment variables and container-friendly setups.
10
+
-[Dynamic Remotes with Synchronous Imports](./dynamic-remotes-synchronous-imports/README.md) – change remote URLs at runtime while keeping static import syntax like `import Widget from 'app2/Widget'`.
11
+
12
+
## Getting started
13
+
14
+
Install dependencies at the repository root:
15
+
16
+
```bash
17
+
pnpm install
18
+
```
19
+
20
+
Then run or build any example from its folder, e.g.:
21
+
22
+
```bash
23
+
pnpm --filter automatic-vendor-sharing_* start
24
+
pnpm --filter dynamic-remotes_* build
25
+
```
26
+
27
+
See each example's README for detailed instructions.
0 commit comments