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