@module-federation/modern-js 0.0.0-next-20240716130450 → 0.0.0-next-20240716133146
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.
|
@@ -140,7 +140,6 @@ function collectSSRAssets(options) {
|
|
|
140
140
|
}
|
|
141
141
|
function createRemoteSSRComponent(info) {
|
|
142
142
|
return (props) => {
|
|
143
|
-
const { key, ...rest } = props;
|
|
144
143
|
const exportName = (info === null || info === void 0 ? void 0 : info.export) || "default";
|
|
145
144
|
const LazyComponent = /* @__PURE__ */ import_react.default.lazy(async () => {
|
|
146
145
|
try {
|
|
@@ -159,7 +158,7 @@ function createRemoteSSRComponent(info) {
|
|
|
159
158
|
children: [
|
|
160
159
|
assets,
|
|
161
160
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Com, {
|
|
162
|
-
...
|
|
161
|
+
...props
|
|
163
162
|
})
|
|
164
163
|
]
|
|
165
164
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
2
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
|
-
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
4
|
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
|
6
5
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
7
6
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -99,9 +98,6 @@ function collectSSRAssets(options) {
|
|
|
99
98
|
}
|
|
100
99
|
function createRemoteSSRComponent(info) {
|
|
101
100
|
return function(props) {
|
|
102
|
-
var key = props.key, rest = _object_without_properties(props, [
|
|
103
|
-
"key"
|
|
104
|
-
]);
|
|
105
101
|
var exportName = (info === null || info === void 0 ? void 0 : info.export) || "default";
|
|
106
102
|
var LazyComponent = /* @__PURE__ */ React.lazy(/* @__PURE__ */ _async_to_generator(function() {
|
|
107
103
|
var m, moduleId, assets, Com, err, FallbackFunctionComponent, FallbackNode;
|
|
@@ -136,7 +132,7 @@ function createRemoteSSRComponent(info) {
|
|
|
136
132
|
return /* @__PURE__ */ _jsxs(_Fragment, {
|
|
137
133
|
children: [
|
|
138
134
|
assets,
|
|
139
|
-
/* @__PURE__ */ _jsx(Com, _object_spread({},
|
|
135
|
+
/* @__PURE__ */ _jsx(Com, _object_spread({}, props))
|
|
140
136
|
]
|
|
141
137
|
});
|
|
142
138
|
}
|
|
@@ -106,7 +106,6 @@ function collectSSRAssets(options) {
|
|
|
106
106
|
}
|
|
107
107
|
function createRemoteSSRComponent(info) {
|
|
108
108
|
return (props) => {
|
|
109
|
-
const { key, ...rest } = props;
|
|
110
109
|
const exportName = (info === null || info === void 0 ? void 0 : info.export) || "default";
|
|
111
110
|
const LazyComponent = /* @__PURE__ */ React.lazy(async () => {
|
|
112
111
|
try {
|
|
@@ -125,7 +124,7 @@ function createRemoteSSRComponent(info) {
|
|
|
125
124
|
children: [
|
|
126
125
|
assets,
|
|
127
126
|
/* @__PURE__ */ _jsx(Com, {
|
|
128
|
-
...
|
|
127
|
+
...props
|
|
129
128
|
})
|
|
130
129
|
]
|
|
131
130
|
})
|
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-20240716133146",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"node-fetch": "~3.3.0",
|
|
62
62
|
"react-error-boundary": "4.0.13",
|
|
63
63
|
"hoist-non-react-statics": "3.3.2",
|
|
64
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
65
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
66
|
-
"@module-federation/node": "0.0.0-next-
|
|
64
|
+
"@module-federation/sdk": "0.0.0-next-20240716133146",
|
|
65
|
+
"@module-federation/enhanced": "0.0.0-next-20240716133146",
|
|
66
|
+
"@module-federation/node": "0.0.0-next-20240716133146"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/hoist-non-react-statics": "3.3.2",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@modern-js/runtime": "^2.55.0",
|
|
73
73
|
"@modern-js/module-tools": "^2.55.0",
|
|
74
74
|
"@modern-js/tsconfig": "^2.55.0",
|
|
75
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
75
|
+
"@module-federation/manifest": "0.0.0-next-20240716133146"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": ">=17",
|