@bleedingdev/modern-js-runtime 3.8.1-ultramodern.5 → 3.8.2-ultramodern.11
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/ssr/index.js +1 -0
- package/dist/cjs/document/DocumentContext.js +1 -1
- package/dist/cjs/document/DocumentStructureContext.js +1 -1
- package/dist/cjs/router/runtime/PrefetchLink.js +1 -1
- package/dist/cjs/router/runtime/rsc-router.js +2 -2
- package/dist/cjs/router/runtime/utils.js +1 -1
- package/dist/esm/cli/ssr/index.mjs +1 -0
- package/dist/esm-node/cli/ssr/index.mjs +1 -0
- package/package.json +10 -10
|
@@ -156,6 +156,7 @@ const ssrBuilderPlugin = (modernAPI, outputModule, exportLoadablePath)=>({
|
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
output: outputConfig,
|
|
159
|
+
splitChunks: isServerEnvironment && (hasModuleFederationRuntimeMarker || hasExplicitMfSsrFlag) ? false : void 0,
|
|
159
160
|
tools: {
|
|
160
161
|
bundlerChain: useLoadablePlugin ? (chain)=>{
|
|
161
162
|
chain.plugin('loadable').use(external_loadable_bundler_plugin_js_default(), [
|
|
@@ -41,7 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
41
41
|
});
|
|
42
42
|
const external_react_namespaceObject = require("react");
|
|
43
43
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
44
|
-
const DocumentContext = /*#__PURE__*/ external_react_default().createContext({
|
|
44
|
+
const DocumentContext = /*#__PURE__*/ (external_react_default()).createContext({
|
|
45
45
|
config: {},
|
|
46
46
|
templateParams: {},
|
|
47
47
|
processEnv: {}
|
|
@@ -41,7 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
41
41
|
});
|
|
42
42
|
const external_react_namespaceObject = require("react");
|
|
43
43
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
44
|
-
const DocumentStructureContext = /*#__PURE__*/ external_react_default().createContext({
|
|
44
|
+
const DocumentStructureContext = /*#__PURE__*/ (external_react_default()).createContext({
|
|
45
45
|
hasSetHead: false,
|
|
46
46
|
hasSetScripts: false,
|
|
47
47
|
hasSetBody: false,
|
|
@@ -294,7 +294,7 @@ const normalizePreloadBehavior = (preload, prefetch)=>{
|
|
|
294
294
|
if ('none' === prefetch) return 'none';
|
|
295
295
|
return prefetch;
|
|
296
296
|
};
|
|
297
|
-
const createPrefetchLink = (Link)=>/*#__PURE__*/ external_react_default().forwardRef(({ to, prefetch = DEFAULT_PREFETCH_BEHAVIOR, preload, ...props }, forwardedRef)=>{
|
|
297
|
+
const createPrefetchLink = (Link)=>/*#__PURE__*/ (external_react_default()).forwardRef(({ to, prefetch = DEFAULT_PREFETCH_BEHAVIOR, preload, ...props }, forwardedRef)=>{
|
|
298
298
|
const isAbsolute = 'string' == typeof to && ABSOLUTE_URL_REGEX.test(to);
|
|
299
299
|
const resolvedPreload = normalizePreloadBehavior(preload, prefetch);
|
|
300
300
|
const [shouldPrefetch, shouldPreload, prefetchHandlers, setViewportElement] = usePrefetchBehavior(prefetch, resolvedPreload, props);
|
|
@@ -108,8 +108,8 @@ const createServerPayload = (routerContext, routes)=>{
|
|
|
108
108
|
}))
|
|
109
109
|
};
|
|
110
110
|
const RouteComponent = Component;
|
|
111
|
-
const routeElement = element ? /*#__PURE__*/ external_react_default().cloneElement(element, elementProps) : /*#__PURE__*/ external_react_default().createElement(RouteComponent, elementProps);
|
|
112
|
-
processedElement = index === cssInjectionIndex ? /*#__PURE__*/ external_react_default().createElement(external_react_default().Fragment, null, /*#__PURE__*/ external_react_default().createElement(external_CSSLinks_js_namespaceObject.CSSLinks, {
|
|
111
|
+
const routeElement = element ? /*#__PURE__*/ (external_react_default()).cloneElement(element, elementProps) : /*#__PURE__*/ (external_react_default()).createElement(RouteComponent, elementProps);
|
|
112
|
+
processedElement = index === cssInjectionIndex ? /*#__PURE__*/ (external_react_default()).createElement(external_react_default().Fragment, null, /*#__PURE__*/ (external_react_default()).createElement(external_CSSLinks_js_namespaceObject.CSSLinks, {
|
|
113
113
|
cssFiles
|
|
114
114
|
}), routeElement) : routeElement;
|
|
115
115
|
}
|
|
@@ -143,7 +143,7 @@ function getRouteObjects(routes, { globalApp, ssrMode, props }) {
|
|
|
143
143
|
const LayoutComponent = createLayoutElement(route.component);
|
|
144
144
|
const routeObject = {
|
|
145
145
|
path: route.path,
|
|
146
|
-
element: /*#__PURE__*/ external_react_default().createElement(LayoutComponent)
|
|
146
|
+
element: /*#__PURE__*/ (external_react_default()).createElement(LayoutComponent)
|
|
147
147
|
};
|
|
148
148
|
routeObjects.push(routeObject);
|
|
149
149
|
}
|
|
@@ -111,6 +111,7 @@ const ssrBuilderPlugin = (modernAPI, outputModule, exportLoadablePath)=>({
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
output: outputConfig,
|
|
114
|
+
splitChunks: isServerEnvironment && (hasModuleFederationRuntimeMarker || hasExplicitMfSsrFlag) ? false : void 0,
|
|
114
115
|
tools: {
|
|
115
116
|
bundlerChain: useLoadablePlugin ? (chain)=>{
|
|
116
117
|
chain.plugin('loadable').use(loadable_bundler_plugin, [
|
|
@@ -113,6 +113,7 @@ const ssrBuilderPlugin = (modernAPI, outputModule, exportLoadablePath)=>({
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
output: outputConfig,
|
|
116
|
+
splitChunks: isServerEnvironment && (hasModuleFederationRuntimeMarker || hasExplicitMfSsrFlag) ? false : void 0,
|
|
116
117
|
tools: {
|
|
117
118
|
bundlerChain: useLoadablePlugin ? (chain)=>{
|
|
118
119
|
chain.plugin('loadable').use(loadable_bundler_plugin, [
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.8.
|
|
20
|
+
"version": "3.8.2-ultramodern.11",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
@@ -246,15 +246,15 @@
|
|
|
246
246
|
"dependencies": {
|
|
247
247
|
"@loadable/component": "5.16.7",
|
|
248
248
|
"@loadable/server": "5.16.7",
|
|
249
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.8.
|
|
250
|
-
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.8.
|
|
251
|
-
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.8.
|
|
252
|
-
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.8.
|
|
253
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.
|
|
254
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.
|
|
249
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.8.2-ultramodern.11",
|
|
250
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.8.2-ultramodern.11",
|
|
251
|
+
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.8.2-ultramodern.11",
|
|
252
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.8.2-ultramodern.11",
|
|
253
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.2-ultramodern.11",
|
|
254
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.2-ultramodern.11",
|
|
255
255
|
"@swc/core": "1.15.43",
|
|
256
256
|
"@swc/helpers": "^0.5.23",
|
|
257
|
-
"@swc/plugin-loadable-components": "^
|
|
257
|
+
"@swc/plugin-loadable-components": "^12.0.0",
|
|
258
258
|
"@types/loadable__component": "^5.13.10",
|
|
259
259
|
"@types/react-helmet": "^6.1.11",
|
|
260
260
|
"cookie": "2.0.1",
|
|
@@ -272,9 +272,9 @@
|
|
|
272
272
|
"react-dom": "^19.2.8"
|
|
273
273
|
},
|
|
274
274
|
"devDependencies": {
|
|
275
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.8.
|
|
275
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.8.2-ultramodern.11",
|
|
276
276
|
"@remix-run/web-fetch": "^4.4.2",
|
|
277
|
-
"@rsbuild/core": "2.
|
|
277
|
+
"@rsbuild/core": "2.2.0-rc.0",
|
|
278
278
|
"@rslib/core": "0.23.2",
|
|
279
279
|
"@scripts/rstest-config": "2.66.0",
|
|
280
280
|
"@testing-library/dom": "^10.4.1",
|