@modern-js/runtime 2.54.3 → 2.54.5
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/router/cli/code/nestedRoutes.js +1 -1
- package/dist/cjs/router/cli/entry.js +1 -1
- package/dist/esm/router/cli/code/nestedRoutes.js +1 -1
- package/dist/esm/router/cli/entry.js +1 -1
- package/dist/esm-node/router/cli/code/nestedRoutes.js +1 -1
- package/dist/esm-node/router/cli/entry.js +1 -1
- package/package.json +10 -11
|
@@ -210,7 +210,7 @@ const walk = async (dirname, rootDir, alias, entryName, isMainEntry, oldVersion)
|
|
|
210
210
|
if (pageAction) {
|
|
211
211
|
pageRoute.action = pageAction;
|
|
212
212
|
}
|
|
213
|
-
(_route_children1 = route.children) === null || _route_children1 === void 0 ? void 0 : _route_children1.
|
|
213
|
+
(_route_children1 = route.children) === null || _route_children1 === void 0 ? void 0 : _route_children1.unshift(pageRoute);
|
|
214
214
|
}
|
|
215
215
|
if (itemWithoutExt === import_constants.NESTED_ROUTE.SPLATE_LOADER_FILE) {
|
|
216
216
|
splatLoaderFile = itemPathWithAlias;
|
|
@@ -60,7 +60,7 @@ const modifyEntrypoints = (entrypoints, config = {}) => {
|
|
|
60
60
|
}
|
|
61
61
|
const isHasNestedRoutes = hasNestedRoutes(entrypoint.absoluteEntryDir);
|
|
62
62
|
const isHasPages = hasPages(entrypoint.absoluteEntryDir);
|
|
63
|
-
if (!isHasNestedRoutes && !isHasPages) {
|
|
63
|
+
if (!isHasNestedRoutes && !isHasPages && !entrypoint.fileSystemRoutes) {
|
|
64
64
|
return entrypoint;
|
|
65
65
|
}
|
|
66
66
|
if (entrypoint.fileSystemRoutes && !(0, import_utils.isRouterV5)(config)) {
|
|
@@ -255,7 +255,7 @@ var walk = function() {
|
|
|
255
255
|
if (pageAction) {
|
|
256
256
|
pageRoute.action = pageAction;
|
|
257
257
|
}
|
|
258
|
-
(_route_children1 = route.children) === null || _route_children1 === void 0 ? void 0 : _route_children1.
|
|
258
|
+
(_route_children1 = route.children) === null || _route_children1 === void 0 ? void 0 : _route_children1.unshift(pageRoute);
|
|
259
259
|
}
|
|
260
260
|
if (itemWithoutExt === NESTED_ROUTE.SPLATE_LOADER_FILE) {
|
|
261
261
|
splatLoaderFile = itemPathWithAlias;
|
|
@@ -29,7 +29,7 @@ var modifyEntrypoints = function(entrypoints) {
|
|
|
29
29
|
}
|
|
30
30
|
var isHasNestedRoutes = hasNestedRoutes(entrypoint.absoluteEntryDir);
|
|
31
31
|
var isHasPages = hasPages(entrypoint.absoluteEntryDir);
|
|
32
|
-
if (!isHasNestedRoutes && !isHasPages) {
|
|
32
|
+
if (!isHasNestedRoutes && !isHasPages && !entrypoint.fileSystemRoutes) {
|
|
33
33
|
return entrypoint;
|
|
34
34
|
}
|
|
35
35
|
if (entrypoint.fileSystemRoutes && !isRouterV5(config)) {
|
|
@@ -175,7 +175,7 @@ const walk = async (dirname, rootDir, alias, entryName, isMainEntry, oldVersion)
|
|
|
175
175
|
if (pageAction) {
|
|
176
176
|
pageRoute.action = pageAction;
|
|
177
177
|
}
|
|
178
|
-
(_route_children1 = route.children) === null || _route_children1 === void 0 ? void 0 : _route_children1.
|
|
178
|
+
(_route_children1 = route.children) === null || _route_children1 === void 0 ? void 0 : _route_children1.unshift(pageRoute);
|
|
179
179
|
}
|
|
180
180
|
if (itemWithoutExt === NESTED_ROUTE.SPLATE_LOADER_FILE) {
|
|
181
181
|
splatLoaderFile = itemPathWithAlias;
|
|
@@ -24,7 +24,7 @@ const modifyEntrypoints = (entrypoints, config = {}) => {
|
|
|
24
24
|
}
|
|
25
25
|
const isHasNestedRoutes = hasNestedRoutes(entrypoint.absoluteEntryDir);
|
|
26
26
|
const isHasPages = hasPages(entrypoint.absoluteEntryDir);
|
|
27
|
-
if (!isHasNestedRoutes && !isHasPages) {
|
|
27
|
+
if (!isHasNestedRoutes && !isHasPages && !entrypoint.fileSystemRoutes) {
|
|
28
28
|
return entrypoint;
|
|
29
29
|
}
|
|
30
30
|
if (entrypoint.fileSystemRoutes && !isRouterV5(config)) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.54.
|
|
18
|
+
"version": "2.54.5",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -195,11 +195,11 @@
|
|
|
195
195
|
"react-side-effect": "^2.1.1",
|
|
196
196
|
"styled-components": "^5.3.1",
|
|
197
197
|
"@swc/helpers": "0.5.3",
|
|
198
|
-
"@modern-js/
|
|
199
|
-
"@modern-js/
|
|
200
|
-
"@modern-js/plugin-data-loader": "2.54.
|
|
201
|
-
"@modern-js/
|
|
202
|
-
"@modern-js/
|
|
198
|
+
"@modern-js/types": "2.54.5",
|
|
199
|
+
"@modern-js/plugin": "2.54.5",
|
|
200
|
+
"@modern-js/plugin-data-loader": "2.54.5",
|
|
201
|
+
"@modern-js/runtime-utils": "2.54.5",
|
|
202
|
+
"@modern-js/utils": "2.54.5"
|
|
203
203
|
},
|
|
204
204
|
"peerDependencies": {
|
|
205
205
|
"react": ">=17",
|
|
@@ -220,11 +220,10 @@
|
|
|
220
220
|
"ts-jest": "^29.1.0",
|
|
221
221
|
"typescript": "^5",
|
|
222
222
|
"webpack": "^5.92.0",
|
|
223
|
-
"@modern-js/
|
|
224
|
-
"@
|
|
225
|
-
"@
|
|
226
|
-
"@
|
|
227
|
-
"@scripts/jest-config": "2.54.3"
|
|
223
|
+
"@modern-js/core": "2.54.5",
|
|
224
|
+
"@scripts/jest-config": "2.54.5",
|
|
225
|
+
"@scripts/build": "2.54.5",
|
|
226
|
+
"@modern-js/app-tools": "2.54.5"
|
|
228
227
|
},
|
|
229
228
|
"sideEffects": false,
|
|
230
229
|
"publishConfig": {
|