Skip to content

Commit 7e2fff7

Browse files
authoredMar 7, 2023
fix(config): watch config even outside of root (#12321)
1 parent b41336e commit 7e2fff7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/vite/src/node/server/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ export async function createServer(
359359
}
360360

361361
const watcher = chokidar.watch(
362-
path.resolve(root),
362+
// config file dependencies might be outside of root
363+
[path.resolve(root), ...config.configFileDependencies],
363364
resolvedWatchOptions,
364365
) as FSWatcher
365366

0 commit comments

Comments
 (0)
Please sign in to comment.