Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 9d070cb

Browse files
committed
fix(server): fix "graph::bundle()" error on windows
1 parent 3331543 commit 9d070cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ export class Application {
13741374
if (mod) {
13751375
const importUrl = util.isLikelyHttpURL(mod.url) ? mod.jsFile : mod.bundlingFile
13761376
return importUrl ? [
1377-
`import * as ${name}_mod_${i} from ${JSON.stringify(importUrl)}`,
1377+
`import * as ${name}_mod_${i} from ${JSON.stringify('file://' + importUrl)}`,
13781378
`__ALEPH.pack[${JSON.stringify(url)}] = ${name}_mod_${i}`
13791379
] : []
13801380
}
@@ -1401,7 +1401,7 @@ export class Application {
14011401

14021402
if (!existsFileSync(bundleFile)) {
14031403
const bundleEntryCode = [
1404-
`import * as mod from ${JSON.stringify(bundlingFile)}`,
1404+
`import * as mod from ${JSON.stringify('file://' + bundlingFile)}`,
14051405
`__ALEPH.pack[${JSON.stringify(mod.url)}] = mod`
14061406
].join('\n')
14071407
await Deno.writeTextFile(bundleEntryFile, bundleEntryCode)

0 commit comments

Comments
 (0)