(path: string, dirs: string[])
| 237 | const routes = routeDirs.map(dir => join(root, dir)) |
| 238 | const pages = pagesDirs.map(dir => join(root, dir)) |
| 239 | const isUnder = (path: string, dirs: string[]) => |
| 240 | dirs.some(dir => path === dir || path.startsWith(`${dir}${sep}`)) |
| 241 | // a file reached through a link is read as Turbopack reads it, by where it is |
| 242 | const walk = (dir: string, isLinked: boolean) => { |
| 243 | const isRoot = dir === root |