@tanstack/router-generator
Advanced tools
Comparing version 1.11.0 to 1.12.3
@@ -34,2 +34,6 @@ import path from "path"; | ||
const variableName = routePathToVariable(routePath); | ||
let isLazy = routePath == null ? void 0 : routePath.endsWith("/lazy"); | ||
if (isLazy) { | ||
routePath = routePath == null ? void 0 : routePath.replace(/\/lazy$/, ""); | ||
} | ||
let isRoute = routePath == null ? void 0 : routePath.endsWith("/route"); | ||
@@ -40,3 +44,2 @@ let isComponent = routePath == null ? void 0 : routePath.endsWith("/component"); | ||
let isLoader = routePath == null ? void 0 : routePath.endsWith("/loader"); | ||
let isLazy = routePath == null ? void 0 : routePath.endsWith("/lazy"); | ||
[ | ||
@@ -43,0 +46,0 @@ [isComponent, "component"], |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.11.0", | ||
"version": "1.12.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -73,2 +73,8 @@ import path from 'path' | ||
let isLazy = routePath?.endsWith('/lazy') | ||
if (isLazy) { | ||
routePath = routePath?.replace(/\/lazy$/, '') | ||
} | ||
let isRoute = routePath?.endsWith('/route') | ||
@@ -79,3 +85,2 @@ let isComponent = routePath?.endsWith('/component') | ||
let isLoader = routePath?.endsWith('/loader') | ||
let isLazy = routePath?.endsWith('/lazy') | ||
@@ -82,0 +87,0 @@ ;( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129542
1702