@module-federation/manifest
Advanced tools
Comparing version 0.0.0-next-20240228073832 to 0.0.0-next-20240301023125
{ | ||
"name": "@module-federation/manifest", | ||
"version": "0.0.0-next-20240228073832", | ||
"version": "0.0.0-next-20240301023125", | ||
"license": "MIT", | ||
@@ -27,4 +27,4 @@ "description": "Provide manifest/stats for webpack/rspack MF project .", | ||
"chalk": "3.0.0", | ||
"@module-federation/sdk": "0.0.0-next-20240228073832", | ||
"@module-federation/managers": "0.0.0-next-20240228073832" | ||
"@module-federation/sdk": "0.0.0-next-20240301023125", | ||
"@module-federation/managers": "0.0.0-next-20240301023125" | ||
}, | ||
@@ -31,0 +31,0 @@ "exports": { |
# `@module-federation/manifest` Documentation | ||
## Description | ||
This package contains the manifest plugin for webpack/rspack internal. | ||
## Installation | ||
```sh | ||
npm install @module-federation/manifest | ||
``` | ||
## Usage | ||
1. replace expose options with container.options.exposes = containerManager.containerPluginExposesOptions; | ||
```js | ||
import { ContainerManager } from '@module-federation/managers'; | ||
const containerManager = new ContainerManager(); | ||
containerManager.init(options); | ||
// it will set expose name automatically | ||
options.exposes = containerManager.containerPluginExposesOptions; | ||
``` | ||
2. use StatsPlugin in webpack.config.js | ||
```js | ||
import { StatsPlugin } from '@module-federation/manifest'; | ||
new StatsPlugin(mfOptions, { | ||
pluginVersion: pkg.version, | ||
bundler: 'webpack', | ||
}).apply(compiler); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154520
36
+ Added@module-federation/managers@0.0.0-next-20240301023125(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240301023125(transitive)
- Removed@module-federation/managers@0.0.0-next-20240228073832(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240228073832(transitive)
Updated@module-federation/managers@0.0.0-next-20240301023125