Skip to content

Commit

Permalink
fix windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 27, 2024
1 parent 8c306a5 commit 4175727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/fs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { posix } from "../deps/path.ts";
import { toFileUrl } from "../deps/path.ts";

import type { RawData } from "./file.ts";
import type { Loader } from "./loaders/mod.ts";
Expand Down Expand Up @@ -67,7 +68,7 @@ export default class FS {
/** Update the entry and returns it if it was removed */
update(path: string): Entry | undefined {
// Check if it's a remote file
const src = posix.toFileUrl(posix.join(this.options.root, path)).href;
const src = toFileUrl(posix.join(this.options.root, path)).href;
const remote = findMapByValue(this.remoteFiles, src);
if (remote) {
path = remote;
Expand Down

0 comments on commit 4175727

Please sign in to comment.