Skip to content

Commit d7550ae

Browse files
authored
Merge pull request #65 from Jack-Works-forks/master
fix: wasm path on windows
2 parents 16e39ae + 4aa01d6 commit d7550ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src_ts/wasm_path.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { URL } from "url";
1+
import { URL, fileURLToPath } from "url";
22

33
export function path(wasmFilename: string): string {
4-
const { pathname } = new URL(wasmFilename, import.meta.url);
5-
return pathname;
4+
const url = new URL(wasmFilename, import.meta.url);
5+
return fileURLToPath(url);
66
}

0 commit comments

Comments
 (0)