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

Commit 93393ec

Browse files
committed
Fix jsFile is invalid on windows port (#201)
1 parent 228696d commit 93393ec

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
@@ -1022,8 +1022,8 @@ export class Application implements ServerApplication {
10221022
): Promise<Module> {
10231023
const isRemote = util.isLikelyHttpURL(url)
10241024
const localUrl = toLocalUrl(url)
1025-
const name = trimModuleExt(basename(localUrl))
10261025
const saveDir = join(this.buildDir, dirname(localUrl))
1026+
const name = trimModuleExt(basename(localUrl))
10271027
const metaFile = join(saveDir, `${name}.meta.json`)
10281028
const { sourceCode, forceCompile, once } = options
10291029

@@ -1039,7 +1039,7 @@ export class Application implements ServerApplication {
10391039
deps: [],
10401040
sourceHash: '',
10411041
hash: '',
1042-
jsFile: util.cleanPath(`${saveDir}/${name}.js`),
1042+
jsFile: join(saveDir, `${name}.js`),
10431043
}
10441044
if (!once) {
10451045
this.#modules.set(url, mod)

0 commit comments

Comments
 (0)