Socket
Socket
Sign inDemoInstall

@module-federation/manifest

Package Overview
Dependencies
Maintainers
8
Versions
386
Alerts
File Explorer

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
578K
increased by19.83%
Maintainers
8
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 24 Jul 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc