Closed designorant closed 1 year ago
Hi, as a temporary solution, while this gets fixed, you can use the no-sharp
branch of AstroCompress
npm install -D -E astro-community/astro-compress#no-sharp
https://github.com/astro-community/AstroCompress/tree/no-sharp
Thanks @NikolaRHristov!
Can confirm the following leads to a successful bun build:
bun add astro-community/AstroCompress#no-sharp
Background
Bun is an all-in-one JavaScript runtime & toolkit that's officially mentioned in Astro docs, albeit with caution.
Issue
This package doesn't work when using Bun due to one of its dependencies, namely sharp.
It is a known issue:
Logs
When running
bun run build
:When running
bun --bun run build
: