@module-federation/webpack-bundler-runtime (0.18.0)

Published 2026-02-24 13:49:51 +00:00 by atheaadmin

Installation

@module-federation:registry=
npm install @module-federation/webpack-bundler-runtime@0.18.0
"@module-federation/webpack-bundler-runtime": "0.18.0"

About this package

@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
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);

Dependencies

Dependencies

ID Version
@module-federation/runtime 0.18.0
@module-federation/sdk 0.18.0

Development Dependencies

ID Version
@module-federation/runtime 0.18.0

Keywords

Module Federation bundler runtime
Details
npm
2026-02-24 13:49:51 +00:00
0
zhanghang
MIT
latest
6.8 KiB
Assets (1)
Versions (2) View all
0.1.6 2026-02-24
0.18.0 2026-02-24