@module-federation/modern-js 2.8.1 → 2.9.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.
|
@@ -225,8 +225,9 @@ var __webpack_exports__ = {};
|
|
|
225
225
|
const splitChunkConfig = chain.optimization.splitChunks.entries();
|
|
226
226
|
if (!isServer) (0, utils_namespaceObject.autoDeleteSplitChunkCacheGroups)(mfConfig, splitChunkConfig);
|
|
227
227
|
if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups) {
|
|
228
|
+
const previousChunks = splitChunkConfig.chunks;
|
|
228
229
|
splitChunkConfig.chunks = 'async';
|
|
229
|
-
external_logger_js_default().warn(
|
|
230
|
+
if (previousChunks && 'async' !== previousChunks) external_logger_js_default().warn(`splitChunks.chunks = "${previousChunks}" is not allowed with stream SSR mode; forcing "async"`);
|
|
230
231
|
}
|
|
231
232
|
if ((0, external_utils_js_namespaceObject.isDev)() && 'auto' === chain.output.get('publicPath')) {
|
|
232
233
|
var _modernjsConfig_dev, _modernjsConfig_server;
|
|
@@ -194,8 +194,9 @@ function patchBundlerConfig(options) {
|
|
|
194
194
|
var splitChunkConfig = chain.optimization.splitChunks.entries();
|
|
195
195
|
if (!isServer) autoDeleteSplitChunkCacheGroups(mfConfig, splitChunkConfig);
|
|
196
196
|
if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups) {
|
|
197
|
+
var previousChunks = splitChunkConfig.chunks;
|
|
197
198
|
splitChunkConfig.chunks = 'async';
|
|
198
|
-
logger.warn('splitChunks.chunks =
|
|
199
|
+
if (previousChunks && 'async' !== previousChunks) logger.warn('splitChunks.chunks = "'.concat(previousChunks, '" is not allowed with stream SSR mode; forcing "async"'));
|
|
199
200
|
}
|
|
200
201
|
if (isDev() && 'auto' === chain.output.get('publicPath')) {
|
|
201
202
|
var _modernjsConfig_dev, _modernjsConfig_server;
|
|
@@ -164,8 +164,9 @@ function patchBundlerConfig(options) {
|
|
|
164
164
|
const splitChunkConfig = chain.optimization.splitChunks.entries();
|
|
165
165
|
if (!isServer) autoDeleteSplitChunkCacheGroups(mfConfig, splitChunkConfig);
|
|
166
166
|
if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups) {
|
|
167
|
+
const previousChunks = splitChunkConfig.chunks;
|
|
167
168
|
splitChunkConfig.chunks = 'async';
|
|
168
|
-
logger.warn(
|
|
169
|
+
if (previousChunks && 'async' !== previousChunks) logger.warn(`splitChunks.chunks = "${previousChunks}" is not allowed with stream SSR mode; forcing "async"`);
|
|
169
170
|
}
|
|
170
171
|
if (isDev() && 'auto' === chain.output.get('publicPath')) {
|
|
171
172
|
var _modernjsConfig_dev, _modernjsConfig_server;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -137,13 +137,13 @@
|
|
|
137
137
|
"dependencies": {
|
|
138
138
|
"@swc/helpers": "0.5.17",
|
|
139
139
|
"jiti": "2.4.2",
|
|
140
|
-
"@module-federation/rsbuild-plugin": "2.
|
|
141
|
-
"@module-federation/
|
|
142
|
-
"@module-federation/
|
|
143
|
-
"@module-federation/
|
|
144
|
-
"@module-federation/
|
|
145
|
-
"@module-federation/
|
|
146
|
-
"@module-federation/
|
|
140
|
+
"@module-federation/rsbuild-plugin": "2.9.0",
|
|
141
|
+
"@module-federation/runtime": "2.9.0",
|
|
142
|
+
"@module-federation/node": "2.7.50",
|
|
143
|
+
"@module-federation/bridge-react": "2.9.0",
|
|
144
|
+
"@module-federation/enhanced": "2.9.0",
|
|
145
|
+
"@module-federation/sdk": "2.9.0",
|
|
146
|
+
"@module-federation/cli": "2.9.0"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@rsbuild/plugin-react": "1.4.5",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"@types/react": "^18.3.11",
|
|
158
158
|
"@types/react-dom": "^18.3.0",
|
|
159
159
|
"typescript": "7.0.2",
|
|
160
|
-
"@module-federation/manifest": "2.
|
|
160
|
+
"@module-federation/manifest": "2.9.0"
|
|
161
161
|
},
|
|
162
162
|
"peerDependencies": {
|
|
163
163
|
"react": ">=17",
|