@modern-js/app-tools 2.3.1-alpha.0 → 2.3.1-alpha.2
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.
|
@@ -173,7 +173,7 @@ const walk = (dirname, rootDir, alias, entryName) => __async(void 0, null, funct
|
|
|
173
173
|
if (finalRoute.children && finalRoute.children.length === 1 && !finalRoute._component) {
|
|
174
174
|
const childRoute = finalRoute.children[0];
|
|
175
175
|
if (childRoute.path === "*") {
|
|
176
|
-
const path2 =
|
|
176
|
+
const path2 = `${finalRoute.path || ""}/${childRoute.path || ""}`;
|
|
177
177
|
finalRoute = __spreadProps(__spreadValues({}, childRoute), {
|
|
178
178
|
path: path2
|
|
179
179
|
});
|
|
@@ -199,7 +199,7 @@ const walk = (dirname, rootDir, alias, entryName) => __async(void 0, null, funct
|
|
|
199
199
|
if (finalRoute.children && finalRoute.children.length === 1 && !finalRoute._component) {
|
|
200
200
|
const childRoute = finalRoute.children[0];
|
|
201
201
|
if (childRoute.path === "*") {
|
|
202
|
-
const path2 =
|
|
202
|
+
const path2 = `${finalRoute.path || ""}/${childRoute.path || ""}`;
|
|
203
203
|
finalRoute = __spreadProps(__spreadValues({}, childRoute), {
|
|
204
204
|
path: path2
|
|
205
205
|
});
|
|
@@ -389,7 +389,7 @@ var walk = function() {
|
|
|
389
389
|
if (finalRoute.children && finalRoute.children.length === 1 && !finalRoute._component) {
|
|
390
390
|
childRoute1 = finalRoute.children[0];
|
|
391
391
|
if (childRoute1.path === "*") {
|
|
392
|
-
path2 = (finalRoute.path || "")
|
|
392
|
+
path2 = "".concat(finalRoute.path || "", "/").concat(childRoute1.path || "");
|
|
393
393
|
finalRoute = _objectSpreadProps(_objectSpread({}, childRoute1), {
|
|
394
394
|
path: path2
|
|
395
395
|
});
|