Skip to content

Commit

Permalink
fix(vite): default watchStdin to !process.stdin.isTTY
Browse files Browse the repository at this point in the history
Fixes the issue with running Vite under Elixir and doesn't cause issues
when running Vite programmatically [1]

[1] #4079
  • Loading branch information
stevehodgkiss committed Dec 28, 2024
1 parent cf10efd commit 71dafec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ export const serverConfigDefaults = Object.freeze({
host: 'localhost',
https: undefined,
open: false,
watchStdin: false,
watchStdin: !process.stdin.isTTY,
proxy: undefined,
cors: true,
headers: {},
Expand Down

0 comments on commit 71dafec

Please sign in to comment.