@module-federation/modern-js 0.0.0-next-20250523061743 → 0.0.0-next-20250523070931
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.
|
@@ -363,17 +363,6 @@ const moduleFederationConfigPlugin = (userConfig) => ({
|
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
});
|
|
366
|
-
if (enableSSR && mfConfig.remotes) {
|
|
367
|
-
api._internalServerPlugins(({ plugins }) => {
|
|
368
|
-
plugins.push({
|
|
369
|
-
name: "@module-federation/modern-js/data-fetch-server-plugin",
|
|
370
|
-
options: {}
|
|
371
|
-
});
|
|
372
|
-
return {
|
|
373
|
-
plugins
|
|
374
|
-
};
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
366
|
}
|
|
378
367
|
});
|
|
379
368
|
var configPlugin_default = moduleFederationConfigPlugin;
|
|
@@ -133,6 +133,17 @@ const moduleFederationSSRPlugin = (pluginOptions) => ({
|
|
|
133
133
|
plugins
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
|
+
if (pluginOptions.ssrConfig.remotes) {
|
|
137
|
+
api._internalServerPlugins(({ plugins }) => {
|
|
138
|
+
plugins.push({
|
|
139
|
+
name: "@module-federation/modern-js/data-fetch-server-plugin",
|
|
140
|
+
options: {}
|
|
141
|
+
});
|
|
142
|
+
return {
|
|
143
|
+
plugins
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
}
|
|
136
147
|
api.modifyBundlerChain((chain) => {
|
|
137
148
|
const target = chain.get("target");
|
|
138
149
|
if ((0, import_utils3.skipByTarget)(target)) {
|
|
@@ -360,18 +360,6 @@ var moduleFederationConfigPlugin = function(userConfig) {
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
});
|
|
363
|
-
if (enableSSR && mfConfig.remotes) {
|
|
364
|
-
api._internalServerPlugins(function(param) {
|
|
365
|
-
var plugins = param.plugins;
|
|
366
|
-
plugins.push({
|
|
367
|
-
name: "@module-federation/modern-js/data-fetch-server-plugin",
|
|
368
|
-
options: {}
|
|
369
|
-
});
|
|
370
|
-
return {
|
|
371
|
-
plugins
|
|
372
|
-
};
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
363
|
return [
|
|
376
364
|
2
|
|
377
365
|
];
|
|
@@ -106,6 +106,18 @@ var moduleFederationSSRPlugin = function(pluginOptions) {
|
|
|
106
106
|
plugins
|
|
107
107
|
};
|
|
108
108
|
});
|
|
109
|
+
if (pluginOptions.ssrConfig.remotes) {
|
|
110
|
+
api._internalServerPlugins(function(param) {
|
|
111
|
+
var plugins = param.plugins;
|
|
112
|
+
plugins.push({
|
|
113
|
+
name: "@module-federation/modern-js/data-fetch-server-plugin",
|
|
114
|
+
options: {}
|
|
115
|
+
});
|
|
116
|
+
return {
|
|
117
|
+
plugins
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
}
|
|
109
121
|
api.modifyBundlerChain(function(chain) {
|
|
110
122
|
var target = chain.get("target");
|
|
111
123
|
if (skipByTarget(target)) {
|
|
@@ -322,17 +322,6 @@ const moduleFederationConfigPlugin = (userConfig) => ({
|
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
});
|
|
325
|
-
if (enableSSR && mfConfig.remotes) {
|
|
326
|
-
api._internalServerPlugins(({ plugins }) => {
|
|
327
|
-
plugins.push({
|
|
328
|
-
name: "@module-federation/modern-js/data-fetch-server-plugin",
|
|
329
|
-
options: {}
|
|
330
|
-
});
|
|
331
|
-
return {
|
|
332
|
-
plugins
|
|
333
|
-
};
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
325
|
}
|
|
337
326
|
});
|
|
338
327
|
var configPlugin_default = moduleFederationConfigPlugin;
|
|
@@ -97,6 +97,17 @@ const moduleFederationSSRPlugin = (pluginOptions) => ({
|
|
|
97
97
|
plugins
|
|
98
98
|
};
|
|
99
99
|
});
|
|
100
|
+
if (pluginOptions.ssrConfig.remotes) {
|
|
101
|
+
api._internalServerPlugins(({ plugins }) => {
|
|
102
|
+
plugins.push({
|
|
103
|
+
name: "@module-federation/modern-js/data-fetch-server-plugin",
|
|
104
|
+
options: {}
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
plugins
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}
|
|
100
111
|
api.modifyBundlerChain((chain) => {
|
|
101
112
|
const target = chain.get("target");
|
|
102
113
|
if (skipByTarget(target)) {
|
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-20250523070931",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -95,6 +95,9 @@
|
|
|
95
95
|
],
|
|
96
96
|
"data-fetch-server-plugin": [
|
|
97
97
|
"./dist/types/cli/server/data-fetch-server-plugin.d.ts"
|
|
98
|
+
],
|
|
99
|
+
"ssr-inject-data-fetch-function-plugin": [
|
|
100
|
+
"./dist/types/cli/server/data-fetch-server-plugin.d.ts"
|
|
98
101
|
]
|
|
99
102
|
}
|
|
100
103
|
},
|
|
@@ -108,12 +111,12 @@
|
|
|
108
111
|
"@swc/helpers": "0.5.13",
|
|
109
112
|
"node-fetch": "~3.3.0",
|
|
110
113
|
"react-error-boundary": "4.1.2",
|
|
111
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
112
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
113
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
114
|
-
"@module-federation/node": "0.0.0-next-
|
|
115
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
116
|
-
"@module-federation/cli": "0.0.0-next-
|
|
114
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250523070931",
|
|
115
|
+
"@module-federation/enhanced": "0.0.0-next-20250523070931",
|
|
116
|
+
"@module-federation/runtime": "0.0.0-next-20250523070931",
|
|
117
|
+
"@module-federation/node": "0.0.0-next-20250523070931",
|
|
118
|
+
"@module-federation/sdk": "0.0.0-next-20250523070931",
|
|
119
|
+
"@module-federation/cli": "0.0.0-next-20250523070931"
|
|
117
120
|
},
|
|
118
121
|
"devDependencies": {
|
|
119
122
|
"@rsbuild/core": "1.2.8",
|
|
@@ -123,7 +126,7 @@
|
|
|
123
126
|
"@modern-js/runtime": "2.67.5",
|
|
124
127
|
"@modern-js/tsconfig": "2.67.5",
|
|
125
128
|
"@modern-js/server-runtime": "2.67.5",
|
|
126
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
129
|
+
"@module-federation/manifest": "0.0.0-next-20250523070931"
|
|
127
130
|
},
|
|
128
131
|
"peerDependencies": {
|
|
129
132
|
"react": ">=17",
|