@module-federation/manifest 0.0.0-next-20240228073832 → 0.0.0-next-20240301023125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1 +1,35 @@
1
1
  # `@module-federation/manifest` Documentation
2
+
3
+ ## Description
4
+
5
+ This package contains the manifest plugin for webpack/rspack internal.
6
+
7
+ ## Installation
8
+
9
+ ```sh
10
+ npm install @module-federation/manifest
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ 1. replace expose options with container.options.exposes = containerManager.containerPluginExposesOptions;
16
+
17
+ ```js
18
+ import { ContainerManager } from '@module-federation/managers';
19
+ const containerManager = new ContainerManager();
20
+ containerManager.init(options);
21
+ // it will set expose name automatically
22
+ options.exposes = containerManager.containerPluginExposesOptions;
23
+ ```
24
+
25
+ 2. use StatsPlugin in webpack.config.js
26
+
27
+ ```js
28
+ import { StatsPlugin } from '@module-federation/manifest';
29
+
30
+ new StatsPlugin(mfOptions, {
31
+ pluginVersion: pkg.version,
32
+ bundler: 'webpack',
33
+ }).apply(compiler);
34
+
35
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/manifest",
3
- "version": "0.0.0-next-20240228073832",
3
+ "version": "0.0.0-next-20240301023125",
4
4
  "license": "MIT",
5
5
  "description": "Provide manifest/stats for webpack/rspack MF project .",
6
6
  "keywords": [
@@ -24,8 +24,8 @@
24
24
  "dependencies": {
25
25
  "find-pkg": "2.0.0",
26
26
  "chalk": "3.0.0",
27
- "@module-federation/sdk": "0.0.0-next-20240228073832",
28
- "@module-federation/managers": "0.0.0-next-20240228073832"
27
+ "@module-federation/sdk": "0.0.0-next-20240301023125",
28
+ "@module-federation/managers": "0.0.0-next-20240301023125"
29
29
  },
30
30
  "exports": {
31
31
  ".": {