I encountered this issue in bun https://github.com/oven-sh/bun/issues/6573 and I tried using Bun.write instead of process.stdout.write then I realized that above issue does not occurs. So I replaced with Bun.write to avoid this issue and potential performance optimize since Bun.write uses faster system call than normal one.
I encountered this issue in bun https://github.com/oven-sh/bun/issues/6573 and I tried using
Bun.write
instead ofprocess.stdout.write
then I realized that above issue does not occurs. So I replaced with Bun.write to avoid this issue and potential performance optimize since Bun.write uses faster system call than normal one.