From 71dafecb17e9950b7a0655fa41f28f27b0b031b2 Mon Sep 17 00:00:00 2001 From: Steve Hodgkiss Date: Sun, 29 Dec 2024 09:21:32 +1100 Subject: [PATCH] fix(vite): default watchStdin to !process.stdin.isTTY Fixes the issue with running Vite under Elixir and doesn't cause issues when running Vite programmatically [1] [1] https://github.com/vitejs/vite/issues/4079 --- packages/vite/src/node/server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {},