# @module-federation/webpack-bundler-runtime

> Module Federation Runtime for webpack

Latest version **2.9.0** (published 2026-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @module-federation/webpack-bundler-runtime
pnpm add @module-federation/webpack-bundler-runtime
yarn add @module-federation/webpack-bundler-runtime
bun add @module-federation/webpack-bundler-runtime
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.9.0 |
| Published | 2026-08-24 |
| First published | 2023-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 174.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2638 |
| Author | zhanghang |
| Maintainers | zackljackson, heal, shawzhou, gioboa |
| Keywords | Module Federation, bundler runtime |

## Links

- npm: https://www.npmjs.com/package/@module-federation/webpack-bundler-runtime
- Repository: https://github.com/module-federation/core
- Homepage: https://github.com/module-federation/core#readme
- Issues: https://github.com/module-federation/core/issues
- npm.io page: https://npm.io/package/@module-federation/webpack-bundler-runtime

## Dependencies (3)

- [@module-federation/sdk](https://npm.io/package/@module-federation/sdk.md) 2.9.0
- [@module-federation/runtime](https://npm.io/package/@module-federation/runtime.md) 2.9.0
- [@module-federation/error-codes](https://npm.io/package/@module-federation/error-codes.md) 2.9.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.9.0 (latest) — 2026-08-24
- 0.0.0-release-v2-9-0-20260824030637 (next) — 2026-08-24
- 0.0.0-feat-node-support-1703050615268 (experimental) — 2023-12-20
- 1.0.0-canary.3 (canary) — 2023-11-23
- 0.0.0-fix-runtime-core-set-shared-lib-20260819111025 — 2026-08-19
- 0.0.0-feat-preload-asset-url-dedupe-20260819073808 — 2026-08-19
- 0.0.0-feat-preload-asset-url-dedupe-20260819072341 — 2026-08-19
- 2.8.2 — 2026-08-06
- 0.0.0-feat-operate-openruntime-20260803054425 — 2026-08-03
- 0.0.0-feat-operate-openruntime-20260729120109 — 2026-07-29
- 0.0.0-feat-operate-openruntime-20260729082849 — 2026-07-29
- 2.8.1 — 2026-07-28
- 0.0.0-feat-operate-openruntime-20260726151341 — 2026-07-26
- 0.0.0-feat-operate-openruntime-20260726083609 — 2026-07-26
- 0.0.0-codex-rspress-codeblock-transform-20260724100038 — 2026-07-24
- … 1219 more at https://npm.io/package/@module-federation/webpack-bundler-runtime/versions

## README

# `@module-federation/webpack-bundler-runtime`

- Extract the build runtime and combine it with the internal runtime
- Used with webpack/rspack

## Usage

The package needs to be used with webpack/rspack bundler. It will export federation object which includes runtime, instance, bundlerRuntime, initOptions, attachShareScopeMap, bundlerRuntimeOptions.

After referencing, mount it to the corresponding bundler runtime, and then use the corresponding api/instance.

- example

```ts
import federation from '@module-federation/webpack-bundler-runtime';

__webpack_require__.federation = federation;

__webpack_require__.f.remotes = __webpack_require__.federation.remotes(options);
__webpack_require__.f.consumes = __webpack_require__.federation.remotes(options);
```

---
_Source: https://npm.io/package/@module-federation/webpack-bundler-runtime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
