Skip to content

Commit

Permalink
prefer mod.file
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed May 10, 2023
1 parent 6521e96 commit 8d2075b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrModuleLoader.ts
Expand Up @@ -222,7 +222,7 @@ async function instantiateModule(
ssrExportAllKey,
'"use strict";' +
result.code +
`\n//# sourceURL=${mod.url}${sourceMapSuffix}`,
`\n//# sourceURL=${mod.file}${sourceMapSuffix}`,
)
await initModule(
context.global,
Expand Down

0 comments on commit 8d2075b

Please sign in to comment.