@tanstack/router-generator
Advanced tools
Comparing version 1.86.0 to 1.87.3
@@ -1,2 +0,1 @@ | ||
import "tsx/esm"; | ||
import path, { resolve, join } from "node:path"; | ||
@@ -6,2 +5,3 @@ import { routePathToVariable, removeExt, removeTrailingSlash, removeLeadingSlash } from "../../utils.js"; | ||
import { virtualRootRouteSchema } from "./config.js"; | ||
import { loadConfigFile } from "./loadConfigFile.js"; | ||
function ensureLeadingUnderScore(id) { | ||
@@ -60,3 +60,3 @@ if (id.startsWith("_")) { | ||
} | ||
const exports = await import(join(root, tsrConfig.virtualRouteConfig)); | ||
const exports = await loadConfigFile(join(root, tsrConfig.virtualRouteConfig)); | ||
if (!("routes" in exports) && !("default" in exports)) { | ||
@@ -63,0 +63,0 @@ throw new Error( |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.86.0", | ||
"version": "1.87.3", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -53,3 +53,3 @@ "author": "Tanner Linsley", | ||
"tsx": "^4.19.2", | ||
"prettier": "^3.4.1", | ||
"prettier": "^3.4.2", | ||
"zod": "^3.23.8", | ||
@@ -56,0 +56,0 @@ "@tanstack/virtual-file-routes": "^1.81.9" |
@@ -1,2 +0,1 @@ | ||
import 'tsx/esm' | ||
import path, { join, resolve } from 'node:path' | ||
@@ -11,2 +10,3 @@ import { | ||
import { virtualRootRouteSchema } from './config' | ||
import { loadConfigFile } from './loadConfigFile' | ||
import type { | ||
@@ -103,3 +103,3 @@ VirtualRootRoute, | ||
} | ||
const exports = await import(join(root, tsrConfig.virtualRouteConfig)) | ||
const exports = await loadConfigFile(join(root, tsrConfig.virtualRouteConfig)) | ||
@@ -106,0 +106,0 @@ if (!('routes' in exports) && !('default' in exports)) { |
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
360406
Updatedprettier@^3.4.2