Skip to content

Commit

Permalink
fix(hmr): normalize the path info
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Sep 1, 2023
1 parent 68bd0a8 commit abee45a
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 @@ -62,7 +62,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 abee45a

Please sign in to comment.