We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d4817 commit c583927Copy full SHA for c583927
packages/vite/src/node/config.ts
@@ -1938,7 +1938,7 @@ async function bundleConfigFile(
1938
mainFields: ['main'],
1939
sourcemap: 'inline',
1940
// the last slash is needed to make the path correct
1941
- sourceRoot: path.dirname(fileName) + path.sep,
+ sourceRoot: pathToFileURL(path.dirname(fileName)).href + '/',
1942
metafile: true,
1943
define: {
1944
__dirname: dirnameVarName,
0 commit comments