@module-federation/devtools 0.1.18 → 0.1.19
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,3 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
1
29
|
var __async = (__this, __arguments, generator) => {
|
|
2
30
|
return new Promise((resolve, reject) => {
|
|
3
31
|
var fulfilled = (value) => {
|
|
@@ -26,8 +54,9 @@ import { __FEDERATION_DEVTOOLS__ } from "../../template";
|
|
|
26
54
|
const fastRefreshPlugin = () => {
|
|
27
55
|
return {
|
|
28
56
|
name: "mf-fast-refresh-plugin",
|
|
29
|
-
|
|
30
|
-
|
|
57
|
+
beforeInit(_a2) {
|
|
58
|
+
var _b = _a2, { userOptions } = _b, args = __objRest(_b, ["userOptions"]);
|
|
59
|
+
const shareInfo = userOptions.shared;
|
|
31
60
|
let enableFastRefresh;
|
|
32
61
|
let devtoolsMessage;
|
|
33
62
|
const devtoolsMessageStr = localStorage.getItem(__FEDERATION_DEVTOOLS__);
|
|
@@ -39,7 +68,7 @@ const fastRefreshPlugin = () => {
|
|
|
39
68
|
console.debug("Fast Refresh Plugin Error: ", e);
|
|
40
69
|
}
|
|
41
70
|
}
|
|
42
|
-
if (isObject(shareInfo)) {
|
|
71
|
+
if (shareInfo && isObject(shareInfo)) {
|
|
43
72
|
let orderResolve;
|
|
44
73
|
const orderPromise = new Promise((resolve) => {
|
|
45
74
|
orderResolve = resolve;
|
|
@@ -87,18 +116,13 @@ const fastRefreshPlugin = () => {
|
|
|
87
116
|
}
|
|
88
117
|
});
|
|
89
118
|
}));
|
|
90
|
-
return {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
options,
|
|
94
|
-
shareInfo
|
|
95
|
-
};
|
|
119
|
+
return __spreadValues({
|
|
120
|
+
userOptions
|
|
121
|
+
}, args);
|
|
96
122
|
} else {
|
|
97
|
-
return {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
options
|
|
101
|
-
};
|
|
123
|
+
return __spreadValues({
|
|
124
|
+
userOptions
|
|
125
|
+
}, args);
|
|
102
126
|
}
|
|
103
127
|
}
|
|
104
128
|
};
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __spreadValues = (a, b) => {
|
|
8
|
+
for (var prop in b || (b = {}))
|
|
9
|
+
if (__hasOwnProp.call(b, prop))
|
|
10
|
+
__defNormalProp(a, prop, b[prop]);
|
|
11
|
+
if (__getOwnPropSymbols)
|
|
12
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
+
if (__propIsEnum.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
};
|
|
18
|
+
var __objRest = (source, exclude) => {
|
|
19
|
+
var target = {};
|
|
20
|
+
for (var prop in source)
|
|
21
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
+
target[prop] = source[prop];
|
|
23
|
+
if (source != null && __getOwnPropSymbols)
|
|
24
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
};
|
|
2
30
|
var __async = (__this, __arguments, generator) => {
|
|
3
31
|
return new Promise((resolve, reject) => {
|
|
4
32
|
var fulfilled = (value) => {
|
|
@@ -27,8 +55,9 @@ var _a;
|
|
|
27
55
|
const fastRefreshPlugin = () => {
|
|
28
56
|
return {
|
|
29
57
|
name: "mf-fast-refresh-plugin",
|
|
30
|
-
|
|
31
|
-
|
|
58
|
+
beforeInit(_a2) {
|
|
59
|
+
var _b = _a2, { userOptions } = _b, args = __objRest(_b, ["userOptions"]);
|
|
60
|
+
const shareInfo = userOptions.shared;
|
|
32
61
|
let enableFastRefresh;
|
|
33
62
|
let devtoolsMessage;
|
|
34
63
|
const devtoolsMessageStr = localStorage.getItem(import_template.__FEDERATION_DEVTOOLS__);
|
|
@@ -40,7 +69,7 @@ const fastRefreshPlugin = () => {
|
|
|
40
69
|
console.debug("Fast Refresh Plugin Error: ", e);
|
|
41
70
|
}
|
|
42
71
|
}
|
|
43
|
-
if ((0, import__.isObject)(shareInfo)) {
|
|
72
|
+
if (shareInfo && (0, import__.isObject)(shareInfo)) {
|
|
44
73
|
let orderResolve;
|
|
45
74
|
const orderPromise = new Promise((resolve) => {
|
|
46
75
|
orderResolve = resolve;
|
|
@@ -88,18 +117,13 @@ const fastRefreshPlugin = () => {
|
|
|
88
117
|
}
|
|
89
118
|
});
|
|
90
119
|
}));
|
|
91
|
-
return {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
options,
|
|
95
|
-
shareInfo
|
|
96
|
-
};
|
|
120
|
+
return __spreadValues({
|
|
121
|
+
userOptions
|
|
122
|
+
}, args);
|
|
97
123
|
} else {
|
|
98
|
-
return {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
options
|
|
102
|
-
};
|
|
124
|
+
return __spreadValues({
|
|
125
|
+
userOptions
|
|
126
|
+
}, args);
|
|
103
127
|
}
|
|
104
128
|
}
|
|
105
129
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/devtools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"install-deps.bash",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react": "~18.2.0",
|
|
39
39
|
"react-dom": "~18.2.0",
|
|
40
40
|
"reactflow": "11.10.4",
|
|
41
|
-
"@module-federation/sdk": "0.1.
|
|
41
|
+
"@module-federation/sdk": "0.1.19"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/dagre": "^0.7.52",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"vitest": "1.2.2",
|
|
62
62
|
"@modern-js/storybook": "2.46.1",
|
|
63
63
|
"@storybook/addon-essentials": "^7",
|
|
64
|
-
"@module-federation/runtime": "0.1.
|
|
64
|
+
"@module-federation/runtime": "0.1.19"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build:storybook": "storybook build",
|