We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0a9f0 commit e55836dCopy full SHA for e55836d
src/vite/plugin.tsx
@@ -112,12 +112,13 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
112
...recursiveFlatten(
113
routeOrRoutes.children.map((child) => {
114
const withoutExtension = child.file.split(".").slice(0, -1).join(".")
115
+ const withoutExtensionParent = routeOrRoutes.file.split(".").slice(0, -1).join(".")
116
// remove the trailing ./ and ../
117
const withoutRelative = withoutExtension.replace(/^\.\//, "").replace(/^\.\.\//, "")
118
return {
119
...child,
120
id: child.id ?? withoutRelative,
- parentId: withoutExtension,
121
+ parentId: withoutExtensionParent,
122
}
123
})
124
),
0 commit comments