Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a085d0

Browse filesBrowse files
authored
fix(hmr): normalize the path info (#14255)
1 parent 4053c6f commit 6a085d0
Copy full SHA for 6a085d0

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
  • packages/vite/src/node/server
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎packages/vite/src/node/server/hmr.ts

Copy file name to clipboardExpand all lines: packages/vite/src/node/server/hmr.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ export async function handleHMRUpdate(
138138
debugHmr?.(`[config change] ${colors.dim(shortFile)}`)
139139
config.logger.info(
140140
colors.green(
141-
`${path.relative(process.cwd(), file)} changed, restarting server...`,
141+
`${normalizePath(
142+
path.relative(process.cwd(), file),
143+
)} changed, restarting server...`,
142144
),
143145
{ clear: true, timestamp: true },
144146
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.