(filePath: string)
| 265 | } |
| 266 | |
| 267 | function isRouteFile(filePath: string): boolean { |
| 268 | const abs = path.resolve(filePath); |
| 269 | if (!abs.startsWith(routesDir + path.sep)) { |
| 270 | return false; |
| 271 | } |
| 272 | const base = path.basename(abs); |
| 273 | return /\.tsx?$/.test(base) && !base.endsWith('.d.ts'); |
| 274 | } |
| 275 | |
| 276 | async function main() { |
| 277 | const started = performance.now(); |