diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 207a8d270bed1e..fa66ffd08b3e5f 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -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: {},