Skip to content

Commit aed7908

Browse files
committed
test
1 parent fa8b264 commit aed7908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vite/plugin.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
7777
return
7878
}
7979

80-
const isRoute = id.includes(`${appDirName}/root`) || flatRoutes.some((route) => id.endsWith(route.file))
80+
const isRoute =
81+
id.includes(`${appDirName}/root`) ||
82+
flatRoutes.some((route) => id.endsWith(route.file.replace(/^\.\//, "").replace(/^\.\.\//, "")))
8183
// biome-ignore lint/suspicious/noConsole: <explanation>
8284
console.log("isRoute", isRoute, id, flatRoutes.length, flatRoutes[0]?.file)
8385
if (!isRoute) {

0 commit comments

Comments
 (0)