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 d6e6194 commit e1a85e9Copy full SHA for e1a85e9
packages/vite/src/node/config.ts
@@ -1720,6 +1720,8 @@ async function bundleConfigFile(
1720
format: isESM ? 'esm' : 'cjs',
1721
mainFields: ['main'],
1722
sourcemap: 'inline',
1723
+ // the last slash is needed to make the path correct
1724
+ sourceRoot: pathToFileURL(path.dirname(fileName)).href + '/',
1725
metafile: true,
1726
define: {
1727
__dirname: dirnameVarName,
0 commit comments