Skip to content

Commit

Permalink
fix(hmr): normalize the path info (#14255)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored May 27, 2024
1 parent 4053c6f commit 6a085d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/server/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export async function handleHMRUpdate(
debugHmr?.(`[config change] ${colors.dim(shortFile)}`)
config.logger.info(
colors.green(
`${path.relative(process.cwd(), file)} changed, restarting server...`,
`${normalizePath(
path.relative(process.cwd(), file),
)} changed, restarting server...`,
),
{ clear: true, timestamp: true },
)
Expand Down

0 comments on commit 6a085d0

Please sign in to comment.