Skip to content

Commit

Permalink
fix(config): watch config even outside of root
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Mar 7, 2023
1 parent 057ff95 commit ebaa55a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
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 ebaa55a

Please sign in to comment.