We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27bde5 commit ae03834Copy full SHA for ae03834
src/runtime/loader.ts
@@ -1,6 +1,6 @@
1
import { walk } from "@std/fs";
2
import { parseArgs as parse } from "@std/cli";
3
-import { basename, join } from "@std/path";
+import { basename, join, toFileUrl } from "@std/path";
4
5
const flags = parse(Deno.args, {
6
string: ["root"],
@@ -31,7 +31,10 @@ for await (const path of walk(flags.root)) {
31
console.info("Load script", path.path);
32
33
const worker = new Worker(
34
- new URL(join(Deno.cwd(), path.path), import.meta.url).href,
+ new URL(
35
+ join(Deno.cwd(), path.path),
36
+ toFileUrl(join(Deno.cwd(), flags.root!))
37
+ ).href,
38
{
39
type: "module",
40
deno: {
0 commit comments