Skip to content

Commit

Permalink
chore: use normalizeSlash utility
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Jan 31, 2023
1 parent 06e0367 commit 397d55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/config/flat-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function flatRoutes(
// fast-glob will return posix paths even on windows
// convert posix to os specific paths
let routePathsForOS = routePaths.map((routePath) => {
return path.join(...routePath.split(path.posix.sep));
return normalizeSlashes(routePath);
});

return flatRoutesUniversal(appDirectory, routePathsForOS);
Expand Down

0 comments on commit 397d55a

Please sign in to comment.