mirror of
https://github.com/zhigang1992/esbuild.git
synced 2026-01-12 17:13:19 +08:00
Avoid stdout buffer allocation (#967)
This commit is contained in:
@@ -434,7 +434,7 @@ export function createChannel(streamIn: StreamIn): StreamOut {
|
||||
break;
|
||||
}
|
||||
offset += 4;
|
||||
handleIncomingPacket(stdout.slice(offset, offset + length));
|
||||
handleIncomingPacket(stdout.subarray(offset, offset + length));
|
||||
offset += length;
|
||||
}
|
||||
if (offset > 0) {
|
||||
|
||||
Reference in New Issue
Block a user