Skip to content

Commit fa8b264

Browse files
committed
test
1 parent 1d41d26 commit fa8b264

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/client/utils/sanitize.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,7 @@ const constructTree = (routes: any, parentId?: string): RawNodeDatum[] => {
5858
const routeKeys = Object.keys(routes)
5959
for (const key of routeKeys) {
6060
const route = routes[key]
61-
// biome-ignore lint/suspicious/noConsole: <explanation>
62-
console.log({
63-
key,
64-
route,
65-
parentId,
66-
})
61+
6762
if (route.parentId === parentId) {
6863
const url = convertReactRouterPathToUrl(routes, route)
6964
const node: RawNodeDatum = {
@@ -84,8 +79,6 @@ const constructTree = (routes: any, parentId?: string): RawNodeDatum[] => {
8479
}
8580

8681
export const createRouteTree = (routes: RouteManifest | undefined) => {
87-
// biome-ignore lint/suspicious/noConsole: <explanation>
88-
console.log("createRouteTree", routes)
8982
return constructTree(routes)
9083
}
9184

src/vite/plugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
7979

8080
const isRoute = id.includes(`${appDirName}/root`) || flatRoutes.some((route) => id.endsWith(route.file))
8181
// biome-ignore lint/suspicious/noConsole: <explanation>
82-
console.log("isRoute", isRoute, id)
82+
console.log("isRoute", isRoute, id, flatRoutes.length, flatRoutes[0]?.file)
8383
if (!isRoute) {
8484
return
8585
}

0 commit comments

Comments
 (0)