パッケージの詳細

webpack-federation-module-id-plugin

DanielAmenou854MIT1.0.0

Change webpack module id of the federation modules

webpack, plugin, module federation, loadable-components

readme

webpack-federation-module-id-plugin

Installation

npm i --save-dev webpack-federation-module-id-plugin

yarn add --dev webpack-federation-module-id-plugin

Usage

const FederationModuleIdPlugin = require("webpack-federation-module-id-plugin");

module.exports = {
  plugins: [
    new FederationModuleIdPlugin(),
  ],
};

Docs

This plugin will change the module id of all the federation modules. The new id will be in the following form: webpack/container/remote/appName/moduleName