Skip to content

Commit

Permalink
fix(config): watch config even outside of root (#12321)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Mar 7, 2023
1 parent b41336e commit 7e2fff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -359,7 +359,8 @@ export async function createServer(
}

const watcher = chokidar.watch(
path.resolve(root),
// config file dependencies might be outside of root
[path.resolve(root), ...config.configFileDependencies],
resolvedWatchOptions,
) as FSWatcher

Expand Down

0 comments on commit 7e2fff7

Please sign in to comment.