We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 129d0d0 commit 56a5740Copy full SHA for 56a5740
packages/vite/src/node/server/index.ts
@@ -414,7 +414,7 @@ export async function _createServer(
414
const watcher = watchEnabled
415
? (chokidar.watch(
416
// config file dependencies and env file might be outside of root
417
- [root, ...config.configFileDependencies, config.envDir],
+ [...new Set([root, ...config.configFileDependencies, config.envDir])],
418
resolvedWatchOptions,
419
) as FSWatcher)
420
: createNoopWatcher(resolvedWatchOptions)
0 commit comments