Skip to content

Commit

Permalink
fix(client): use debug channel on hot updates
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Jun 29, 2022
1 parent 1a498f7 commit 6cf64e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/client/client.ts
Expand Up @@ -166,7 +166,7 @@ async function handleMessage(payload: HMRPayload) {
newLinkTag.addEventListener('error', removeOldEl)
el.after(newLinkTag)
}
console.log(`[vite] css hot updated: ${searchUrl}`)
console.debug(`[vite] css hot updated: ${searchUrl}`)
}
})
break
Expand Down Expand Up @@ -413,7 +413,7 @@ async function fetchUpdate({ path, acceptedPath, timestamp }: Update) {
fn(deps.map((dep) => moduleMap.get(dep)))
}
const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`
console.log(`[vite] hot updated: ${loggedPath}`)
console.debug(`[vite] hot updated: ${loggedPath}`)
}
}

Expand Down

0 comments on commit 6cf64e9

Please sign in to comment.