@modern-js/app-tools 2.28.1-alpha.0 → 2.28.1-alpha.1
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.
|
@@ -75,10 +75,7 @@ const optimizeRoute = (routeTree) => {
|
|
|
75
75
|
path: routePath
|
|
76
76
|
};
|
|
77
77
|
});
|
|
78
|
-
|
|
79
|
-
return newRoutes.flatMap((newRoute) => optimizeRoute(newRoute));
|
|
80
|
-
}
|
|
81
|
-
return newRoutes;
|
|
78
|
+
return newRoutes.flatMap((newRoute) => optimizeRoute(newRoute));
|
|
82
79
|
} else {
|
|
83
80
|
routeTree.children = children.flatMap(optimizeRoute);
|
|
84
81
|
return [
|
|
@@ -53,12 +53,9 @@ export var optimizeRoute = function(routeTree) {
|
|
|
53
53
|
path: routePath
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
return newRoutes;
|
|
56
|
+
return newRoutes.flatMap(function(newRoute) {
|
|
57
|
+
return optimizeRoute(newRoute);
|
|
58
|
+
});
|
|
62
59
|
} else {
|
|
63
60
|
routeTree.children = children.flatMap(optimizeRoute);
|
|
64
61
|
return [
|
|
@@ -52,10 +52,7 @@ export const optimizeRoute = (routeTree) => {
|
|
|
52
52
|
path: routePath
|
|
53
53
|
};
|
|
54
54
|
});
|
|
55
|
-
|
|
56
|
-
return newRoutes.flatMap((newRoute) => optimizeRoute(newRoute));
|
|
57
|
-
}
|
|
58
|
-
return newRoutes;
|
|
55
|
+
return newRoutes.flatMap((newRoute) => optimizeRoute(newRoute));
|
|
59
56
|
} else {
|
|
60
57
|
routeTree.children = children.flatMap(optimizeRoute);
|
|
61
58
|
return [
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.28.1-alpha.
|
|
18
|
+
"version": "2.28.1-alpha.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"@modern-js/builder-shared": "2.28.0",
|
|
78
78
|
"@modern-js/builder-webpack-provider": "2.28.0",
|
|
79
79
|
"@modern-js/core": "2.28.0",
|
|
80
|
-
"@modern-js/new-action": "2.28.0",
|
|
81
80
|
"@modern-js/node-bundle-require": "2.28.0",
|
|
82
81
|
"@modern-js/plugin": "2.28.0",
|
|
82
|
+
"@modern-js/builder-plugin-node-polyfill": "2.28.0",
|
|
83
|
+
"@modern-js/new-action": "2.28.0",
|
|
83
84
|
"@modern-js/plugin-i18n": "2.28.0",
|
|
84
|
-
"@modern-js/plugin-lint": "2.28.0",
|
|
85
85
|
"@modern-js/prod-server": "2.28.0",
|
|
86
|
+
"@modern-js/plugin-lint": "2.28.0",
|
|
86
87
|
"@modern-js/server": "2.28.0",
|
|
87
|
-
"@modern-js/utils": "2.28.0",
|
|
88
|
-
"@modern-js/upgrade": "2.28.0",
|
|
89
|
-
"@modern-js/builder-plugin-esbuild": "2.28.0",
|
|
90
88
|
"@modern-js/types": "2.28.0",
|
|
89
|
+
"@modern-js/upgrade": "2.28.0",
|
|
90
|
+
"@modern-js/utils": "2.28.0",
|
|
91
91
|
"@modern-js/server-core": "2.28.0",
|
|
92
|
-
"@modern-js/builder-plugin-
|
|
92
|
+
"@modern-js/builder-plugin-esbuild": "2.28.0",
|
|
93
93
|
"@modern-js/plugin-data-loader": "2.28.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"jest": "^29",
|
|
100
100
|
"typescript": "^5",
|
|
101
101
|
"webpack": "^5.88.1",
|
|
102
|
-
"@modern-js/builder-rspack-provider": "2.28.0",
|
|
103
102
|
"@scripts/build": "2.28.0",
|
|
104
103
|
"@scripts/jest-config": "2.28.0",
|
|
104
|
+
"@modern-js/builder-rspack-provider": "2.28.0",
|
|
105
105
|
"@modern-js/builder-plugin-swc": "2.28.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|