Fix warning with vite dev
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user