@empjs/cli 3.0.0-beta.32 → 3.0.0-beta.33
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Configuration } from '@rspack/core';
|
|
2
2
|
import type { EMPShareType } from '../types/config';
|
|
3
|
-
import
|
|
3
|
+
import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';
|
|
4
4
|
export type externalAssetsType = {
|
|
5
5
|
js: string[];
|
|
6
6
|
css: string[];
|
|
7
7
|
};
|
|
8
|
-
export type ModuleFederationPluginOptions =
|
|
8
|
+
export type ModuleFederationPluginOptions = ConstructorParameters<typeof ModuleFederationPlugin>[0];
|
|
9
9
|
export type ImportMapType = {
|
|
10
10
|
imports: {
|
|
11
11
|
[key: string]: any;
|
|
@@ -24,7 +24,7 @@ export declare class EMPShareLib {
|
|
|
24
24
|
* 是否取用 importMap
|
|
25
25
|
*/
|
|
26
26
|
get useImportMap(): boolean | undefined;
|
|
27
|
-
get pluginConfig():
|
|
27
|
+
get pluginConfig(): ModuleFederationPluginOptions;
|
|
28
28
|
prepareEsm(): void;
|
|
29
29
|
setShareLib(): Promise<void>;
|
|
30
30
|
private setExternalAssets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.33",
|
|
4
4
|
"description": "emp",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
},
|
|
66
66
|
"author": "Ken",
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@module-federation/sdk": "^0.1.2",
|
|
69
68
|
"@types/compression": "^1.7.2",
|
|
70
69
|
"@types/cors": "^2.8.12",
|
|
71
70
|
"@types/default-gateway": "^7.2.1",
|