-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
After version 0.1.8 added Updated core module imports to use Node.js node: protocol for fs, path, and buffer, the integration errors out when using the Bun runtime. Specifically, when trying to compress IMAGES. I have not tested this on CSS, JS, and HTML, but it does still compress SVG.
For example, if I do
bunx --bun astro build, it doesn't work and gives a lot of errors,
but when I do bunx astro build it works fine and compresses normally.
In version 0.1.7 (and under), it still worked and compressed normally even when I did bunx --bun astro build.
I understand this is a pretty minor issue, but as someone who really enjoys using Bun for everything possible, I would appreciate if Bun support could get added back again. I understand if you decide not to though cause it is really minor.
In addition to this output, I also get an
Error: Cannot compress file //dist/_astro/<...filename> error below it for every file.
I want to clarify, Astro still builds fine, and the output website still looks fine even after the integration errors out, it's just the integration is no longer compressing the files.
