@module-federation/manifest
TypeScript icon, indicating that this package has built-in type declarations

0.18.3 • Public • Published

@module-federation/manifest Documentation

Description

This package contains the manifest plugin for webpack/rspack internal.

Installation

npm install @module-federation/manifest

Usage

  1. replace expose options with container.options.exposes = containerManager.containerPluginExposesOptions;
import { ContainerManager } from '@module-federation/managers';
const containerManager = new ContainerManager();
containerManager.init(options);
// it will set expose name automatically
options.exposes = containerManager.containerPluginExposesOptions;
  1. use StatsPlugin in webpack.config.js
import { StatsPlugin } from '@module-federation/manifest';

new StatsPlugin(mfOptions, {
  pluginVersion: pkg.version,
  bundler: 'webpack',
}).apply(compiler);

Package Sidebar

Install

npm i @module-federation/manifest

Weekly Downloads

2,121,709

Version

0.18.3

License

MIT

Unpacked Size

198 kB

Total Files

16

Last publish

Collaborators

  • zackljackson
  • heal
  • valorkin
  • zackarychapple
  • ilteoood
  • shawzhou
  • gioboa