Skip to content

Commit 7000908

Browse files
committed
fix: avoid fileURL for source-map-support compat
1 parent e1a85e9 commit 7000908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ async function bundleConfigFile(
17211721
mainFields: ['main'],
17221722
sourcemap: 'inline',
17231723
// the last slash is needed to make the path correct
1724-
sourceRoot: pathToFileURL(path.dirname(fileName)).href + '/',
1724+
sourceRoot: path.dirname(fileName) + '/',
17251725
metafile: true,
17261726
define: {
17271727
__dirname: dirnameVarName,

0 commit comments

Comments
 (0)