@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 = (finalRoute.path || "") + (childRoute.path || "");
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 = (finalRoute.path || "") + (childRoute.path || "");
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 || "") + (childRoute1.path || "");
392
+ path2 = "".concat(finalRoute.path || "", "/").concat(childRoute1.path || "");
393
393
  finalRoute = _objectSpreadProps(_objectSpread({}, childRoute1), {
394
394
  path: path2
395
395
  });
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.3.1-alpha.0",
14
+ "version": "2.3.1-alpha.2",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",