Fix warning with vite dev

This commit is contained in:
2026-11-11 14:46:51 -03:00
parent 216d54a0ae
commit 8aa05e104d
9 changed files with 132 additions and 42 deletions
+7
View File
@@ -2,6 +2,13 @@ import * as path from "@std/path";
import type { Lazy, MaybeLazy } from "./types.ts";
import { pathToFileUrl, relativeUrl } from "./file_url.ts";
/** Normalize a path to use forward slashes so that generated files
* are portable across operating systems (e.g. build on Windows,
* deploy on Linux). */
export function toPosix(p: string): string {
return p.replaceAll("\\", "/");
}
export function assertInDir(
filePath: string,
dir: string,