Skip to content

Commit f0df723

Browse files
sapphi-redbluwy
andauthored
refactor: use path.sep
Co-authored-by: Bjorn Lu <[email protected]>
1 parent 7000908 commit f0df723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/config.ts

+1-1
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: path.dirname(fileName) + '/',
1724+
sourceRoot: path.dirname(fileName) + path.sep,
17251725
metafile: true,
17261726
define: {
17271727
__dirname: dirnameVarName,

0 commit comments

Comments
 (0)