Skip to content

Commit

Permalink
refactor: use path.sep
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
sapphi-red and bluwy authored Dec 3, 2024
1 parent 7000908 commit f0df723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ async function bundleConfigFile(
mainFields: ['main'],
sourcemap: 'inline',
// the last slash is needed to make the path correct
sourceRoot: path.dirname(fileName) + '/',
sourceRoot: path.dirname(fileName) + path.sep,
metafile: true,
define: {
__dirname: dirnameVarName,
Expand Down

0 comments on commit f0df723

Please sign in to comment.