Skip to content

Commit

Permalink
delete this commit
Browse files Browse the repository at this point in the history
just debugging windows ci
  • Loading branch information
pcattori committed Feb 20, 2024
1 parent 12bb20f commit e189d99
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/remix-dev/config/flat-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export function flatRoutes(
} else if (entry.isFile()) {
route = findRouteModuleForFile(appDirectory, filepath, ignoredFileRegex);
}
console.log({ filepath, route });

if (route) routes.push(route);
}
Expand Down Expand Up @@ -150,6 +151,15 @@ export function flatRoutesUniversal(
.relative(normalizedApp, normalizedFile)
.slice(0, -routeExt.length)
: path.posix.relative(normalizedApp, routeDir);
console.log({
type: "routeId",
routeId,
normalizedApp,
prefix,
normalizedFile,
routeExt,
routeDir,
});

let conflict = routeIds.get(routeId);
if (conflict) {
Expand Down Expand Up @@ -183,6 +193,7 @@ export function flatRoutesUniversal(
let childRouteIds = prefixLookup.findAndRemove(routeId, (value) => {
return [".", "/"].includes(value.slice(routeId.length).charAt(0));
});
console.log("add:", routeId);
prefixLookup.add(routeId);

if (childRouteIds.length > 0) {
Expand Down Expand Up @@ -304,6 +315,7 @@ function findRouteModuleForFile(
): string | null {
let relativePath = path.relative(appDirectory, filepath);
let isIgnored = ignoredFileRegex.some((regex) => regex.test(relativePath));
console.log({ isIgnored });
if (isIgnored) return null;
return filepath;
}
Expand Down

0 comments on commit e189d99

Please sign in to comment.