lix-website/themes/lix/assets/bootstrap/node_modules/terser/tools/exit.cjs
2024-04-26 22:49:34 -06: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)
});