@module-federation/manifest
Documentation
Description
This package contains the manifest plugin for webpack/rspack internal.
Installation
npm install @module-federation/manifest
Usage
- replace expose options with container.options.exposes = containerManager.containerPluginExposesOptions;
import { ContainerManager } from '@module-federation/managers';
const containerManager = new ContainerManager();
containerManager.init(options);
options.exposes = containerManager.containerPluginExposesOptions;
- use StatsPlugin in webpack.config.js
import { StatsPlugin } from '@module-federation/manifest';
new StatsPlugin(mfOptions, {
pluginVersion: pkg.version,
bundler: 'webpack',
}).apply(compiler);