Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Feb 20, 2024
1 parent 12bb20f commit 74cda7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/config/flat-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function flatRoutes(

let routes: string[] = [];
for (let entry of entries) {
let filepath = path.join(routesDir, entry.name);
let filepath = normalizeSlashes(path.join(routesDir, entry.name));

let route: string | null = null;
// If it's a directory, don't recurse into it, instead just look for a route module
Expand Down Expand Up @@ -302,7 +302,7 @@ function findRouteModuleForFile(
filepath: string,
ignoredFileRegex: RegExp[]
): string | null {
let relativePath = path.relative(appDirectory, filepath);
let relativePath = normalizeSlashes(path.relative(appDirectory, filepath));
let isIgnored = ignoredFileRegex.some((regex) => regex.test(relativePath));
if (isIgnored) return null;
return filepath;
Expand Down

0 comments on commit 74cda7d

Please sign in to comment.