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 53b8251 commit 5e67f53Copy full SHA for 5e67f53
packages/react-router-dev/vite/plugin.ts
@@ -3650,7 +3650,9 @@ export async function getEnvironmentOptionsResolvers(
3650
let isRootRoute =
3651
route.file === ctx.reactRouterConfig.routes.root.file;
3652
3653
- let code = readFileSync(routeFilePath, "utf-8");
+ let cleanPath = path.normalize(decodeURIComponent(routeFilePath));
3654
+ let code = readFileSync(cleanPath, "utf-8");
3655
+
3656
3657
return [
3658
`${routeFilePath}${BUILD_CLIENT_ROUTE_QUERY_STRING}`,
0 commit comments