Skip to content

Commit 8d2075b

Browse files
committed
prefer mod.file
1 parent 6521e96 commit 8d2075b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/ssr/ssrModuleLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ async function instantiateModule(
222222
ssrExportAllKey,
223223
'"use strict";' +
224224
result.code +
225-
`\n//# sourceURL=${mod.url}${sourceMapSuffix}`,
225+
`\n//# sourceURL=${mod.file}${sourceMapSuffix}`,
226226
)
227227
await initModule(
228228
context.global,

0 commit comments

Comments
 (0)