@bleedingdev/modern-js-runtime 3.2.0-ultramodern.92 → 3.2.0-ultramodern.93
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/exports/loadable.js +34 -4
- package/dist/cjs/router/cli/code/templates.js +14 -1
- package/dist/esm/exports/loadable.mjs +20 -3
- package/dist/esm/router/cli/code/templates.mjs +14 -1
- package/dist/esm-node/exports/loadable.mjs +20 -3
- package/dist/esm-node/router/cli/code/templates.mjs +14 -1
- package/dist/types/exports/loadable.d.ts +8 -1
- package/package.json +8 -8
|
@@ -48,18 +48,48 @@ var __webpack_exports__ = {};
|
|
|
48
48
|
(()=>{
|
|
49
49
|
__webpack_require__.r(__webpack_exports__);
|
|
50
50
|
__webpack_require__.d(__webpack_exports__, {
|
|
51
|
-
|
|
51
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ()=>__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
52
|
+
default: ()=>__rspack_default_export,
|
|
53
|
+
lazy: ()=>lazy,
|
|
54
|
+
loadableReady: ()=>loadableReady
|
|
52
55
|
});
|
|
53
56
|
var _loadable_component__rspack_import_0 = __webpack_require__("@loadable/component");
|
|
54
57
|
var _loadable_component__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_loadable_component__rspack_import_0);
|
|
55
58
|
var __rspack_reexport = {};
|
|
56
|
-
for(const __rspack_import_key in _loadable_component__rspack_import_0)if (
|
|
59
|
+
for(const __rspack_import_key in _loadable_component__rspack_import_0)if ([
|
|
60
|
+
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
61
|
+
"loadableReady",
|
|
62
|
+
"default",
|
|
63
|
+
"lazy"
|
|
64
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_loadable_component__rspack_import_0[__rspack_import_key];
|
|
57
65
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
58
|
-
|
|
66
|
+
function resolveLoadable(module) {
|
|
67
|
+
const namespace = module;
|
|
68
|
+
const defaultExport = namespace.default;
|
|
69
|
+
const candidates = [
|
|
70
|
+
module,
|
|
71
|
+
namespace.default,
|
|
72
|
+
defaultExport?.default
|
|
73
|
+
];
|
|
74
|
+
const loadable = candidates.find((candidate)=>'function' == typeof candidate);
|
|
75
|
+
if (!loadable) throw new TypeError('Modern.js runtime loadable export must resolve to a function');
|
|
76
|
+
return loadable;
|
|
77
|
+
}
|
|
78
|
+
const loadable = resolveLoadable(_loadable_component__rspack_import_0);
|
|
79
|
+
const lazy = _loadable_component__rspack_import_0.lazy ?? _loadable_component__rspack_import_0_default()?.lazy ?? loadable.lazy;
|
|
80
|
+
const loadableReady = _loadable_component__rspack_import_0.loadableReady ?? _loadable_component__rspack_import_0_default()?.loadableReady ?? loadable.loadableReady;
|
|
81
|
+
const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = _loadable_component__rspack_import_0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? _loadable_component__rspack_import_0_default()?.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? loadable.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
82
|
+
const __rspack_default_export = loadable;
|
|
59
83
|
})();
|
|
84
|
+
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = __webpack_exports__.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
60
85
|
exports["default"] = __webpack_exports__["default"];
|
|
86
|
+
exports.lazy = __webpack_exports__.lazy;
|
|
87
|
+
exports.loadableReady = __webpack_exports__.loadableReady;
|
|
61
88
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
62
|
-
"
|
|
89
|
+
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
90
|
+
"default",
|
|
91
|
+
"lazy",
|
|
92
|
+
"loadableReady"
|
|
63
93
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
64
94
|
Object.defineProperty(exports, '__esModule', {
|
|
65
95
|
value: true
|
|
@@ -141,7 +141,20 @@ const fileSystemRoutes = async ({ metaName, routes, ssrMode, nestedRoutesEntry,
|
|
|
141
141
|
const loadersMapFile = external_path_default().join(internalDirectory, entryName, external_constants_js_namespaceObject.TEMP_LOADERS_DIR, 'map.json');
|
|
142
142
|
const importLazyCode = `
|
|
143
143
|
import { lazy } from "react";
|
|
144
|
-
import
|
|
144
|
+
import * as loadableModule from "@${metaName}/runtime/loadable"
|
|
145
|
+
|
|
146
|
+
const resolveLoadableExport = module => {
|
|
147
|
+
const candidates = [module, module.default, module.default?.default];
|
|
148
|
+
const loadable = candidates.find(candidate => typeof candidate === 'function');
|
|
149
|
+
|
|
150
|
+
if (!loadable) {
|
|
151
|
+
throw new TypeError('Modern.js runtime loadable export must resolve to a function');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return loadable;
|
|
155
|
+
};
|
|
156
|
+
const loadable = resolveLoadableExport(loadableModule);
|
|
157
|
+
const loadableLazy = loadableModule.lazy || loadableModule.default?.lazy || loadable.lazy;
|
|
145
158
|
`;
|
|
146
159
|
let rootLayoutCode = "";
|
|
147
160
|
const getDataLoaderPath = ({ loaderId, clientData, action, inline, routeId, inValidSSRRoute })=>{
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as __rspack_external__loadable_component_0aaae075 from "@loadable/component";
|
|
2
2
|
export * from "@loadable/component";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
function resolveLoadable(module) {
|
|
4
|
+
const namespace = module;
|
|
5
|
+
const defaultExport = namespace.default;
|
|
6
|
+
const candidates = [
|
|
7
|
+
module,
|
|
8
|
+
namespace.default,
|
|
9
|
+
defaultExport?.default
|
|
10
|
+
];
|
|
11
|
+
const loadable = candidates.find((candidate)=>'function' == typeof candidate);
|
|
12
|
+
if (!loadable) throw new TypeError('Modern.js runtime loadable export must resolve to a function');
|
|
13
|
+
return loadable;
|
|
14
|
+
}
|
|
15
|
+
const loadable_loadable = resolveLoadable(__rspack_external__loadable_component_0aaae075);
|
|
16
|
+
const lazy = __rspack_external__loadable_component_0aaae075.lazy ?? __rspack_external__loadable_component_0aaae075["default"]?.lazy ?? loadable_loadable.lazy;
|
|
17
|
+
const loadableReady = __rspack_external__loadable_component_0aaae075.loadableReady ?? __rspack_external__loadable_component_0aaae075["default"]?.loadableReady ?? loadable_loadable.loadableReady;
|
|
18
|
+
const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = __rspack_external__loadable_component_0aaae075.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? __rspack_external__loadable_component_0aaae075["default"]?.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? loadable_loadable.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
19
|
+
const exports_loadable = loadable_loadable;
|
|
20
|
+
export default exports_loadable;
|
|
21
|
+
export { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, lazy, loadableReady };
|
|
@@ -100,7 +100,20 @@ const fileSystemRoutes = async ({ metaName, routes, ssrMode, nestedRoutesEntry,
|
|
|
100
100
|
const loadersMapFile = path.join(internalDirectory, entryName, TEMP_LOADERS_DIR, 'map.json');
|
|
101
101
|
const importLazyCode = `
|
|
102
102
|
import { lazy } from "react";
|
|
103
|
-
import
|
|
103
|
+
import * as loadableModule from "@${metaName}/runtime/loadable"
|
|
104
|
+
|
|
105
|
+
const resolveLoadableExport = module => {
|
|
106
|
+
const candidates = [module, module.default, module.default?.default];
|
|
107
|
+
const loadable = candidates.find(candidate => typeof candidate === 'function');
|
|
108
|
+
|
|
109
|
+
if (!loadable) {
|
|
110
|
+
throw new TypeError('Modern.js runtime loadable export must resolve to a function');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return loadable;
|
|
114
|
+
};
|
|
115
|
+
const loadable = resolveLoadableExport(loadableModule);
|
|
116
|
+
const loadableLazy = loadableModule.lazy || loadableModule.default?.lazy || loadable.lazy;
|
|
104
117
|
`;
|
|
105
118
|
let rootLayoutCode = "";
|
|
106
119
|
const getDataLoaderPath = ({ loaderId, clientData, action, inline, routeId, inValidSSRRoute })=>{
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import
|
|
2
|
+
import * as __rspack_external__loadable_component_0aaae075 from "@loadable/component";
|
|
3
3
|
export * from "@loadable/component";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
function resolveLoadable(module) {
|
|
5
|
+
const namespace = module;
|
|
6
|
+
const defaultExport = namespace.default;
|
|
7
|
+
const candidates = [
|
|
8
|
+
module,
|
|
9
|
+
namespace.default,
|
|
10
|
+
defaultExport?.default
|
|
11
|
+
];
|
|
12
|
+
const loadable = candidates.find((candidate)=>'function' == typeof candidate);
|
|
13
|
+
if (!loadable) throw new TypeError('Modern.js runtime loadable export must resolve to a function');
|
|
14
|
+
return loadable;
|
|
15
|
+
}
|
|
16
|
+
const loadable_loadable = resolveLoadable(__rspack_external__loadable_component_0aaae075);
|
|
17
|
+
const lazy = __rspack_external__loadable_component_0aaae075.lazy ?? __rspack_external__loadable_component_0aaae075["default"]?.lazy ?? loadable_loadable.lazy;
|
|
18
|
+
const loadableReady = __rspack_external__loadable_component_0aaae075.loadableReady ?? __rspack_external__loadable_component_0aaae075["default"]?.loadableReady ?? loadable_loadable.loadableReady;
|
|
19
|
+
const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = __rspack_external__loadable_component_0aaae075.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? __rspack_external__loadable_component_0aaae075["default"]?.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? loadable_loadable.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
20
|
+
const exports_loadable = loadable_loadable;
|
|
21
|
+
export default exports_loadable;
|
|
22
|
+
export { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, lazy, loadableReady };
|
|
@@ -102,7 +102,20 @@ const fileSystemRoutes = async ({ metaName, routes, ssrMode, nestedRoutesEntry,
|
|
|
102
102
|
const loadersMapFile = path.join(internalDirectory, entryName, TEMP_LOADERS_DIR, 'map.json');
|
|
103
103
|
const importLazyCode = `
|
|
104
104
|
import { lazy } from "react";
|
|
105
|
-
import
|
|
105
|
+
import * as loadableModule from "@${metaName}/runtime/loadable"
|
|
106
|
+
|
|
107
|
+
const resolveLoadableExport = module => {
|
|
108
|
+
const candidates = [module, module.default, module.default?.default];
|
|
109
|
+
const loadable = candidates.find(candidate => typeof candidate === 'function');
|
|
110
|
+
|
|
111
|
+
if (!loadable) {
|
|
112
|
+
throw new TypeError('Modern.js runtime loadable export must resolve to a function');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return loadable;
|
|
116
|
+
};
|
|
117
|
+
const loadable = resolveLoadableExport(loadableModule);
|
|
118
|
+
const loadableLazy = loadableModule.lazy || loadableModule.default?.lazy || loadable.lazy;
|
|
106
119
|
`;
|
|
107
120
|
let rootLayoutCode = "";
|
|
108
121
|
const getDataLoaderPath = ({ loaderId, clientData, action, inline, routeId, inValidSSRRoute })=>{
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type LoadableDefault = typeof import('@loadable/component').default;
|
|
2
|
+
type LoadableLazy = typeof import('@loadable/component').lazy;
|
|
3
|
+
type LoadableReady = typeof import('@loadable/component').loadableReady;
|
|
4
|
+
type LoadableInternals = typeof import('@loadable/component').__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
5
|
+
declare const loadable: LoadableDefault;
|
|
6
|
+
export declare const lazy: LoadableLazy;
|
|
7
|
+
export declare const loadableReady: LoadableReady;
|
|
8
|
+
export declare const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: LoadableInternals;
|
|
2
9
|
export default loadable;
|
|
3
10
|
export * from '@loadable/component';
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.2.0-ultramodern.
|
|
20
|
+
"version": "3.2.0-ultramodern.93",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
@@ -233,12 +233,12 @@
|
|
|
233
233
|
"isbot": "5.1.40",
|
|
234
234
|
"react-helmet-async": "3.0.0",
|
|
235
235
|
"react-is": "^19.2.6",
|
|
236
|
-
"@modern-js/
|
|
237
|
-
"@modern-js/
|
|
238
|
-
"@modern-js/
|
|
239
|
-
"@modern-js/
|
|
240
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.
|
|
241
|
-
"@modern-js/
|
|
236
|
+
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.2.0-ultramodern.93",
|
|
237
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.93",
|
|
238
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.93",
|
|
239
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.93",
|
|
240
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.93",
|
|
241
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.93"
|
|
242
242
|
},
|
|
243
243
|
"peerDependencies": {
|
|
244
244
|
"react": "^19.2.6",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"@typescript/native-preview": "7.0.0-dev.20260527.2",
|
|
258
258
|
"react": "^19.2.6",
|
|
259
259
|
"react-dom": "^19.2.6",
|
|
260
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.
|
|
260
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.93",
|
|
261
261
|
"@scripts/rstest-config": "2.66.0"
|
|
262
262
|
},
|
|
263
263
|
"sideEffects": false,
|