Skip to content

docs: refresh advanced api overview #4366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions advanced-api/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
# Advanced API

This leverages pre-release implementations of Webpack 5 Module Federation's new advanced API
Examples in this directory showcase early implementations of advanced Module Federation features. Each subfolder is a standalone example with its own documentation.

There are several configurations in here
## Available examples

- Dynamic Remotes
- The ability to dynamically load and share code between remotes that are unknown to the host at build time.
- [Automatic Vendor Sharing](./automatic-vendor-sharing/README.md) – automatically detect and share common dependencies across federated builds.
- [Dynamic Remotes](./dynamic-remotes/README.md) – dynamically load and share code from remotes that aren't known to the host at build time.
- [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.
- [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'`.

## Getting started

Install dependencies at the repository root:

```bash
pnpm install
```

Then run or build any example from its folder, e.g.:

```bash
pnpm --filter automatic-vendor-sharing_* start
pnpm --filter dynamic-remotes_* build
```

See each example's README for detailed instructions.
Loading