parallelize script loads

This commit is contained in:
Brian Beck 2025-12-02 22:06:20 -08:00
parent 9d3554de02
commit 2f23934de0
17 changed files with 561 additions and 68 deletions

View file

@ -133,6 +133,12 @@ export class CaseInsensitiveSet {
}
}
export function normalizePath(path: string): string {
return path.replace(/\\/g, "/").toLowerCase();
/** Normalize path separators only (backslashes to forward slashes). */
export function normalizeSlashes(path: string): string {
return path.replace(/\\/g, "/");
}
/** Normalize path for use as a cache key (slashes + lowercase). */
export function normalizePath(path: string): string {
return normalizeSlashes(path).toLowerCase();
}