New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@module-federation/manifest

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/manifest

Provide manifest/stats for webpack/rspack MF project .


Version published
Weekly downloads
1.1M
increased by5.38%
Maintainers
7
Weekly downloads
 
Created
Issues
79

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

FAQs

Package last updated on 26 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts