@module-federation/devtools 2.0.0 → 2.1.0
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.
|
@@ -123,6 +123,11 @@ const Layout = (props) => {
|
|
|
123
123
|
const ensureFederationContext = () => {
|
|
124
124
|
if (!window.__FEDERATION__) {
|
|
125
125
|
window.__FEDERATION__ = {
|
|
126
|
+
__GLOBAL_PLUGIN__: [],
|
|
127
|
+
__INSTANCES__: [],
|
|
128
|
+
__SHARE__: {},
|
|
129
|
+
__MANIFEST_LOADING__: {},
|
|
130
|
+
__PRELOADED_MAP__: /* @__PURE__ */ new Map(),
|
|
126
131
|
originModuleInfo: moduleInfo || {},
|
|
127
132
|
moduleInfo: moduleInfo || {}
|
|
128
133
|
};
|
|
@@ -33,7 +33,15 @@ const getModuleInfo = () => {
|
|
|
33
33
|
return {
|
|
34
34
|
name: "mf-devtool-getModuleInfo-plugin",
|
|
35
35
|
loadRemoteSnapshot(_a2) {
|
|
36
|
-
var _b = _a2, {
|
|
36
|
+
var _b = _a2, {
|
|
37
|
+
options,
|
|
38
|
+
moduleInfo,
|
|
39
|
+
remoteSnapshot
|
|
40
|
+
} = _b, res = __objRest(_b, [
|
|
41
|
+
"options",
|
|
42
|
+
"moduleInfo",
|
|
43
|
+
"remoteSnapshot"
|
|
44
|
+
]);
|
|
37
45
|
const globalSnapshot = helpers.global.getGlobalSnapshot();
|
|
38
46
|
if (!options || options.inBrowser) {
|
|
39
47
|
window.postMessage(
|
|
@@ -128,6 +128,11 @@ const Layout = (props) => {
|
|
|
128
128
|
const ensureFederationContext = () => {
|
|
129
129
|
if (!window.__FEDERATION__) {
|
|
130
130
|
window.__FEDERATION__ = {
|
|
131
|
+
__GLOBAL_PLUGIN__: [],
|
|
132
|
+
__INSTANCES__: [],
|
|
133
|
+
__SHARE__: {},
|
|
134
|
+
__MANIFEST_LOADING__: {},
|
|
135
|
+
__PRELOADED_MAP__: /* @__PURE__ */ new Map(),
|
|
131
136
|
originModuleInfo: moduleInfo || {},
|
|
132
137
|
moduleInfo: moduleInfo || {}
|
|
133
138
|
};
|
|
@@ -54,7 +54,15 @@ const getModuleInfo = () => {
|
|
|
54
54
|
return {
|
|
55
55
|
name: "mf-devtool-getModuleInfo-plugin",
|
|
56
56
|
loadRemoteSnapshot(_a2) {
|
|
57
|
-
var _b = _a2, {
|
|
57
|
+
var _b = _a2, {
|
|
58
|
+
options,
|
|
59
|
+
moduleInfo,
|
|
60
|
+
remoteSnapshot
|
|
61
|
+
} = _b, res = __objRest(_b, [
|
|
62
|
+
"options",
|
|
63
|
+
"moduleInfo",
|
|
64
|
+
"remoteSnapshot"
|
|
65
|
+
]);
|
|
58
66
|
const globalSnapshot = import_helpers.default.global.getGlobalSnapshot();
|
|
59
67
|
if (!options || options.inBrowser) {
|
|
60
68
|
window.postMessage(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/devtools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"types": "./dist/types/App.d.ts",
|
|
17
|
+
"types": "./dist/types/src/App.d.ts",
|
|
18
18
|
"require": "./dist/lib/App.js",
|
|
19
19
|
"import": "./dist/es/App.js"
|
|
20
20
|
},
|
|
21
21
|
"./App": {
|
|
22
|
-
"types": "./dist/types/App.d.ts",
|
|
22
|
+
"types": "./dist/types/src/App.d.ts",
|
|
23
23
|
"require": "./dist/lib/App.js",
|
|
24
24
|
"import": "./dist/es/App.js"
|
|
25
25
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"echarts-for-react": "^3.0.5",
|
|
48
48
|
"i18next": "^23.0.0",
|
|
49
49
|
"react-i18next": "^15.0.0",
|
|
50
|
-
"@module-federation/sdk": "2.
|
|
50
|
+
"@module-federation/sdk": "2.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^18 || ^19",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@modern-js/module-tools": "2.70.2",
|
|
71
71
|
"@modern-js/storybook": "2.70.2",
|
|
72
72
|
"@modern-js/tsconfig": "2.70.2",
|
|
73
|
-
"@playwright/test": "1.
|
|
73
|
+
"@playwright/test": "1.57.0",
|
|
74
74
|
"@types/chrome": "^0.0.272",
|
|
75
75
|
"@types/dagre": "^0.7.52",
|
|
76
76
|
"@types/jest": "~29.2.4",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"prettier": "~3.3.3",
|
|
82
82
|
"rimraf": "~6.0.1",
|
|
83
83
|
"vitest": "1.2.2",
|
|
84
|
-
"@module-federation/runtime": "2.
|
|
84
|
+
"@module-federation/runtime": "2.1.0"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build:storybook": "storybook build",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"serve": "modern-app serve",
|
|
100
100
|
"postinstall": "bash install-deps.bash"
|
|
101
101
|
},
|
|
102
|
-
"types": "./dist/
|
|
102
|
+
"types": "./dist/types/src/App.d.ts"
|
|
103
103
|
}
|