@module-federation/webpack-bundler-runtime
Module Federation Runtime for webpack
Last updated 11 days ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @module-federation/webpack-bundler-runtime 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0-canary.3                                ...           canary (2 years ago)
  • 2.3.1                                ...           latest (11 days ago)
  • 0.0.0-next-20250901083037                                ...           next (7 months ago)

1054 Versions

Downloads
Today 0
This Week 73
This Month 204
Last Day 11
Last Week 167
Last Month 273
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |