@module-federation/modern-js 0.0.0-next-20250714073201 → 0.0.0-next-20250714115720
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/dist/cjs/cli/configPlugin.spec.js +1 -2
- package/dist/esm/cli/configPlugin.spec.js +1 -2
- package/dist/esm-node/cli/configPlugin.spec.js +1 -2
- package/package.json +9 -16
- package/dist/cjs/runtime/plugin.js +0 -43
- package/dist/esm/runtime/plugin.js +0 -19
- package/dist/esm-node/runtime/plugin.js +0 -19
- package/dist/types/runtime/plugin.d.ts +0 -2
|
@@ -88,8 +88,7 @@ const mfConfig = {
|
|
|
88
88
|
},
|
|
89
89
|
remoteType: "script",
|
|
90
90
|
runtimePlugins: [
|
|
91
|
-
require.resolve("@module-federation/modern-js/shared-strategy")
|
|
92
|
-
require.resolve("@module-federation/bridge-react/lazy-load-component-plugin")
|
|
91
|
+
require.resolve("@module-federation/modern-js/shared-strategy")
|
|
93
92
|
],
|
|
94
93
|
shared: {
|
|
95
94
|
react: {
|
|
@@ -76,8 +76,7 @@ describe("patchMFConfig", /* @__PURE__ */ _async_to_generator(function() {
|
|
|
76
76
|
},
|
|
77
77
|
remoteType: "script",
|
|
78
78
|
runtimePlugins: [
|
|
79
|
-
require.resolve("@module-federation/modern-js/shared-strategy")
|
|
80
|
-
require.resolve("@module-federation/bridge-react/lazy-load-component-plugin")
|
|
79
|
+
require.resolve("@module-federation/modern-js/shared-strategy")
|
|
81
80
|
],
|
|
82
81
|
shared: {
|
|
83
82
|
react: {
|
|
@@ -65,8 +65,7 @@ describe("patchMFConfig", async () => {
|
|
|
65
65
|
},
|
|
66
66
|
remoteType: "script",
|
|
67
67
|
runtimePlugins: [
|
|
68
|
-
require.resolve("@module-federation/modern-js/shared-strategy")
|
|
69
|
-
require.resolve("@module-federation/bridge-react/lazy-load-component-plugin")
|
|
68
|
+
require.resolve("@module-federation/modern-js/shared-strategy")
|
|
70
69
|
],
|
|
71
70
|
shared: {
|
|
72
71
|
react: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250714115720",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -24,10 +24,6 @@
|
|
|
24
24
|
"types": "./dist/types/runtime/index.d.ts",
|
|
25
25
|
"default": "./dist/esm/runtime/index.js"
|
|
26
26
|
},
|
|
27
|
-
"./runtime-plugin": {
|
|
28
|
-
"types": "./dist/types/runtime/plugin.d.ts",
|
|
29
|
-
"default": "./dist/esm/runtime/plugin.js"
|
|
30
|
-
},
|
|
31
27
|
"./react": {
|
|
32
28
|
"types": "./dist/types/react/index.d.ts",
|
|
33
29
|
"default": "./dist/esm/react/index.js"
|
|
@@ -82,9 +78,6 @@
|
|
|
82
78
|
"runtime": [
|
|
83
79
|
"./dist/types/runtime/index.d.ts"
|
|
84
80
|
],
|
|
85
|
-
"runtime-plugin": [
|
|
86
|
-
"./dist/types/runtime/plugin.d.ts"
|
|
87
|
-
],
|
|
88
81
|
"react": [
|
|
89
82
|
"./dist/types/react/index.d.ts"
|
|
90
83
|
],
|
|
@@ -126,13 +119,13 @@
|
|
|
126
119
|
"@swc/helpers": "^0.5.17",
|
|
127
120
|
"node-fetch": "~3.3.0",
|
|
128
121
|
"react-error-boundary": "4.1.2",
|
|
129
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
130
|
-
"@module-federation/bridge-react": "0.0.0-next-
|
|
131
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
132
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
133
|
-
"@module-federation/node": "0.0.0-next-
|
|
134
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
135
|
-
"@module-federation/cli": "0.0.0-next-
|
|
122
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250714115720",
|
|
123
|
+
"@module-federation/bridge-react": "0.0.0-next-20250714115720",
|
|
124
|
+
"@module-federation/enhanced": "0.0.0-next-20250714115720",
|
|
125
|
+
"@module-federation/runtime": "0.0.0-next-20250714115720",
|
|
126
|
+
"@module-federation/node": "0.0.0-next-20250714115720",
|
|
127
|
+
"@module-federation/sdk": "0.0.0-next-20250714115720",
|
|
128
|
+
"@module-federation/cli": "0.0.0-next-20250714115720"
|
|
136
129
|
},
|
|
137
130
|
"devDependencies": {
|
|
138
131
|
"@modern-js/core": "2.67.5",
|
|
@@ -142,7 +135,7 @@
|
|
|
142
135
|
"@modern-js/module-tools": "2.67.6",
|
|
143
136
|
"@modern-js/runtime": "2.67.6",
|
|
144
137
|
"@modern-js/tsconfig": "2.67.6",
|
|
145
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
138
|
+
"@module-federation/manifest": "0.0.0-next-20250714115720"
|
|
146
139
|
},
|
|
147
140
|
"peerDependencies": {
|
|
148
141
|
"react": ">=17",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var plugin_exports = {};
|
|
20
|
-
__export(plugin_exports, {
|
|
21
|
-
mfPlugin: () => mfPlugin
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(plugin_exports);
|
|
24
|
-
var import_runtime = require("@module-federation/enhanced/runtime");
|
|
25
|
-
var import_bridge_react = require("@module-federation/bridge-react");
|
|
26
|
-
const mfPlugin = () => {
|
|
27
|
-
return {
|
|
28
|
-
name: "@modern-js/plugin-mf",
|
|
29
|
-
setup: (api) => {
|
|
30
|
-
api.wrapRoot((App) => {
|
|
31
|
-
var _getInstance;
|
|
32
|
-
(_getInstance = (0, import_runtime.getInstance)()) === null || _getInstance === void 0 ? void 0 : _getInstance.registerPlugins([
|
|
33
|
-
(0, import_bridge_react.lazyLoadComponentPlugin)()
|
|
34
|
-
]);
|
|
35
|
-
return App;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
-
0 && (module.exports = {
|
|
42
|
-
mfPlugin
|
|
43
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getInstance } from "@module-federation/enhanced/runtime";
|
|
2
|
-
import { lazyLoadComponentPlugin } from "@module-federation/bridge-react";
|
|
3
|
-
var mfPlugin = function() {
|
|
4
|
-
return {
|
|
5
|
-
name: "@modern-js/plugin-mf",
|
|
6
|
-
setup: function(api) {
|
|
7
|
-
api.wrapRoot(function(App) {
|
|
8
|
-
var _getInstance;
|
|
9
|
-
(_getInstance = getInstance()) === null || _getInstance === void 0 ? void 0 : _getInstance.registerPlugins([
|
|
10
|
-
lazyLoadComponentPlugin()
|
|
11
|
-
]);
|
|
12
|
-
return App;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
mfPlugin
|
|
19
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getInstance } from "@module-federation/enhanced/runtime";
|
|
2
|
-
import { lazyLoadComponentPlugin } from "@module-federation/bridge-react";
|
|
3
|
-
const mfPlugin = () => {
|
|
4
|
-
return {
|
|
5
|
-
name: "@modern-js/plugin-mf",
|
|
6
|
-
setup: (api) => {
|
|
7
|
-
api.wrapRoot((App) => {
|
|
8
|
-
var _getInstance;
|
|
9
|
-
(_getInstance = getInstance()) === null || _getInstance === void 0 ? void 0 : _getInstance.registerPlugins([
|
|
10
|
-
lazyLoadComponentPlugin()
|
|
11
|
-
]);
|
|
12
|
-
return App;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
mfPlugin
|
|
19
|
-
};
|