Fix profiling download

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

View File

@ -1701,7 +1701,7 @@ export function devTool (
})
if (resp.ok) {
const bdir = basename(opt.output)
if (existsSync(bdir)) {
if (!existsSync(bdir)) {
await mkdir(bdir, { recursive: true })
}
const bytes = await resp.arrayBuffer()