mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
parent
db28b92caf
commit
d1b143fd58
@ -74,7 +74,7 @@ export async function handleHMRUpdate(
|
||||
|
||||
const isEnv =
|
||||
config.inlineConfig.envFile !== false &&
|
||||
getEnvFilesForMode(config.mode, config.envDir).includes(fileName)
|
||||
getEnvFilesForMode(config.mode, config.envDir).includes(file)
|
||||
if (isConfig || isConfigDependency || isPackageJson || isEnv) {
|
||||
// auto restart server
|
||||
debugHmr?.(`[config change] ${colors.dim(shortFile)}`)
|
||||
|
Loading…
Reference in New Issue
Block a user