#UnoCSS is broken using Bun

1 messages · Page 1 of 1 (latest)

lucid fjord
#

Howdy everyone,

I have noticed this issue for quite a while but just now created a minimal recreation as well.

TLDR: unocss started breaking in Bun (v1.1.40 and prior versions) starting version 0.61.7. v0.61.6 is the last known version working.

The minimal recreation is here:

https://github.com/stacksjs/bun-unocss-issue

If there's any chance to get this issue somehow resolved, that would be greatly appreciated, especially with Vite 6 out now. It will slowly but surely start locking us from more and more dependency upgrades (i.e. Vite, VitePress, eslint configs & plugins, unocss itself, and potentially more)

A relating issue here: https://github.com/oven-sh/bun/issues/13338

🙏💙

#

I wonder if it's relating unconfig

random bloom
#

yeah that looks most suspicious

#

the rest of the diff is mostly tests and dependency updates

lucid fjord
#

True, I am looking a little bit more at importx and see if I can recreate some issue there

random bloom
#

its probably the interop default import

#

they probably shouldn't remove that

lucid fjord
#

Yea, that definitely would fix it. I had an issue there before and that's what led me to PR that interopDefault (which resolved bun compatibility issue back then)

#

I will ask antfu to see if there's some approach he would like