Skip to content

Commit

Permalink
Update tools/build.js
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe Serhal <[email protected]>
  • Loading branch information
pieh and serhalp authored Dec 17, 2024
1 parent af3e15b commit f1beb45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ async function vendorDeno() {
const destination = join(vendorDest, url.hostname, url.pathname)

const res = await fetch(url)
if (!res.ok) throw new Error('Failed to fetch .wasm file to vendor', {cause: err})
const fileStream = createWriteStream(destination, { flags: 'wx' })
await finished(Readable.fromWeb(res.body).pipe(fileStream))
}),
Expand Down

0 comments on commit f1beb45

Please sign in to comment.