Skip to content

Commit

Permalink
fix(server): avoid chokidar throttling on startup (#15347)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkubej committed Dec 14, 2023
1 parent 129d0d0 commit 56a5740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -414,7 +414,7 @@ export async function _createServer(
const watcher = watchEnabled
? (chokidar.watch(
// config file dependencies and env file might be outside of root
[root, ...config.configFileDependencies, config.envDir],
[...new Set([root, ...config.configFileDependencies, config.envDir])],
resolvedWatchOptions,
) as FSWatcher)
: createNoopWatcher(resolvedWatchOptions)
Expand Down

0 comments on commit 56a5740

Please sign in to comment.