Skip to content

Commit 7b15607

Browse files
authoredFeb 14, 2024··
fix(runtime): pass path instead of fileURL to isFilePathESM (#15908)
1 parent 7440191 commit 7b15607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/ssr/fetchModule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function fetchModule(
7777
throw err
7878
}
7979
const file = pathToFileURL(resolved.id).toString()
80-
const type = isFilePathESM(file, server.config.packageCache)
80+
const type = isFilePathESM(resolved.id, server.config.packageCache)
8181
? 'module'
8282
: 'commonjs'
8383
return { externalize: file, type }

0 commit comments

Comments
 (0)
Please sign in to comment.