We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent 962e593 commit 9602686Copy full SHA for 9602686
packages/vite/src/node/shortcuts.ts
@@ -21,7 +21,9 @@ export function bindShortcuts(
21
server: ViteDevServer,
22
opts: BindShortcutsOptions,
23
): void {
24
- if (!server.httpServer) return
+ if (!server.httpServer || !process.stdin.isTTY || process.env.CI) {
25
+ return
26
+ }
27
server._shortcutsOptions = opts
28
29
if (opts.print) {
@@ -71,9 +73,7 @@ export function bindShortcuts(
71
73
actionRunning = false
72
74
}
75
- if (process.stdin.isTTY) {
- process.stdin.setRawMode(true)
76
- }
+ process.stdin.setRawMode(true)
77
78
process.stdin.on('data', onInput).setEncoding('utf8').resume()
79
0 commit comments