Build fix

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-06-02 13:08:08 +07:00
parent 8de089a4f8
commit f11feed5ff
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -1704,9 +1704,9 @@ export function devTool (
if (existsSync(bdir)) {
await mkdir(bdir, { recursive: true })
}
const bytes = await resp.bytes()
const bytes = await resp.arrayBuffer()
console.log('writing to', opt.output)
await writeFile(opt.output, bytes, { encoding: 'binary' })
await writeFile(opt.output, new Uint8Array(bytes))
} else {
console.error('failed to stop profile', resp.headers)
}