@module-federation/enhanced 0.11.1 → 0.11.3
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.
- package/README.md +40 -0
- package/bin/mf.js +4 -0
- package/dist/package.json +6 -1
- package/dist/src/index.d.ts +1 -0
- package/package.json +17 -12
package/README.md
CHANGED
|
@@ -171,3 +171,43 @@ Once set, the runtime plugin is automatically injected and used at build time.
|
|
|
171
171
|
- Default: `undefined`
|
|
172
172
|
|
|
173
173
|
Used to modify the actual bundler runtime version. Path with value `@module-federation/runtime-tools`.
|
|
174
|
+
|
|
175
|
+
## CLI
|
|
176
|
+
|
|
177
|
+
To view all available CLI commands, run the following command in the project directory:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
npx mf -h
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
The output is shown below:
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
Usage: mf <command> [options]
|
|
187
|
+
|
|
188
|
+
Options:
|
|
189
|
+
-V, --version output the version number
|
|
190
|
+
-h, --help display help for command
|
|
191
|
+
|
|
192
|
+
Commands:
|
|
193
|
+
dts [options] generate or fetch the mf types
|
|
194
|
+
help [command] display help for command
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### mf dts
|
|
198
|
+
|
|
199
|
+
The mf dts command is used to generate or fetch remote types.
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
Usage: mf dts [options]
|
|
203
|
+
|
|
204
|
+
generate or fetch the mf types
|
|
205
|
+
|
|
206
|
+
Options:
|
|
207
|
+
--root <root> specify the project root directory
|
|
208
|
+
--output <output> specify the generated dts output directory
|
|
209
|
+
--fetch <boolean> fetch types from remote, default is true (default: true)
|
|
210
|
+
--generate <boolean> generate types, default is true (default: true)
|
|
211
|
+
-c --config <config> specify the configuration file, can be a relative or absolute path
|
|
212
|
+
-h, --help display help for command
|
|
213
|
+
```
|
package/bin/mf.js
ADDED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/enhanced",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"main": "./dist/src/index.js",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -9,9 +9,13 @@
|
|
|
9
9
|
"directory": "packages/enhanced"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"bin",
|
|
12
13
|
"dist/",
|
|
13
14
|
"README.md"
|
|
14
15
|
],
|
|
16
|
+
"bin": {
|
|
17
|
+
"mf": "./bin/mf.js"
|
|
18
|
+
},
|
|
15
19
|
"license": "MIT",
|
|
16
20
|
"publishConfig": {
|
|
17
21
|
"access": "public"
|
|
@@ -96,6 +100,7 @@
|
|
|
96
100
|
"@module-federation/rspack": "workspace:*",
|
|
97
101
|
"@module-federation/runtime-tools": "workspace:*",
|
|
98
102
|
"@module-federation/sdk": "workspace:*",
|
|
103
|
+
"@module-federation/cli": "workspace:*",
|
|
99
104
|
"btoa": "^1.2.1",
|
|
100
105
|
"upath": "2.0.1"
|
|
101
106
|
},
|
package/dist/src/index.d.ts
CHANGED
|
@@ -17,3 +17,4 @@ export declare const container: {
|
|
|
17
17
|
readonly ContainerEntryModule: any;
|
|
18
18
|
};
|
|
19
19
|
export declare const createModuleFederationConfig: (options: moduleFederationPlugin.ModuleFederationPluginOptions) => moduleFederationPlugin.ModuleFederationPluginOptions;
|
|
20
|
+
export type { moduleFederationPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/enhanced",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"main": "./dist/src/index.js",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -9,9 +9,13 @@
|
|
|
9
9
|
"directory": "packages/enhanced"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"bin",
|
|
12
13
|
"dist/",
|
|
13
14
|
"README.md"
|
|
14
15
|
],
|
|
16
|
+
"bin": {
|
|
17
|
+
"mf": "./bin/mf.js"
|
|
18
|
+
},
|
|
15
19
|
"license": "MIT",
|
|
16
20
|
"publishConfig": {
|
|
17
21
|
"access": "public"
|
|
@@ -83,20 +87,21 @@
|
|
|
83
87
|
"ajv": "^8.17.1",
|
|
84
88
|
"enhanced-resolve": "^5.0.0",
|
|
85
89
|
"terser": "^5.37.0",
|
|
86
|
-
"@module-federation/webpack-bundler-runtime": "0.11.
|
|
90
|
+
"@module-federation/webpack-bundler-runtime": "0.11.3"
|
|
87
91
|
},
|
|
88
92
|
"dependencies": {
|
|
89
93
|
"btoa": "^1.2.1",
|
|
90
94
|
"upath": "2.0.1",
|
|
91
|
-
"@module-federation/bridge-react-webpack-plugin": "0.11.
|
|
92
|
-
"@module-federation/data-prefetch": "0.11.
|
|
93
|
-
"@module-federation/dts-plugin": "0.11.
|
|
94
|
-
"@module-federation/error-codes": "0.11.
|
|
95
|
-
"@module-federation/inject-external-runtime-core-plugin": "0.11.
|
|
96
|
-
"@module-federation/managers": "0.11.
|
|
97
|
-
"@module-federation/manifest": "0.11.
|
|
98
|
-
"@module-federation/rspack": "0.11.
|
|
99
|
-
"@module-federation/runtime-tools": "0.11.
|
|
100
|
-
"@module-federation/sdk": "0.11.
|
|
95
|
+
"@module-federation/bridge-react-webpack-plugin": "0.11.3",
|
|
96
|
+
"@module-federation/data-prefetch": "0.11.3",
|
|
97
|
+
"@module-federation/dts-plugin": "0.11.3",
|
|
98
|
+
"@module-federation/error-codes": "0.11.3",
|
|
99
|
+
"@module-federation/inject-external-runtime-core-plugin": "0.11.3",
|
|
100
|
+
"@module-federation/managers": "0.11.3",
|
|
101
|
+
"@module-federation/manifest": "0.11.3",
|
|
102
|
+
"@module-federation/rspack": "0.11.3",
|
|
103
|
+
"@module-federation/runtime-tools": "0.11.3",
|
|
104
|
+
"@module-federation/sdk": "0.11.3",
|
|
105
|
+
"@module-federation/cli": "0.11.3"
|
|
101
106
|
}
|
|
102
107
|
}
|