Frontend/25_01_07/mai/node_modules/terser/tools/exit.cjs
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

8 lines
249 B
JavaScript

// workaround for tty output truncation upon process.exit()
// https://github.com/nodejs/node/issues/6456
[process.stdout, process.stderr].forEach((s) => {
s && s.isTTY && s._handle && s._handle.setBlocking &&
s._handle.setBlocking(true)
});