You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node docs here define import, require, and node-addons which bun ignores. I've never seen that last one but it seems to have some extra logic where the first two can just be treated as a higher priority than browser.
What version of Bun is running?
0.5.8
What platform is your computer?
No response
What steps can reproduce the bug?
Bun Docs show that package.json
![image](https://user-images.githubusercontent.com/24465214/224123057-859fe50c-17b2-4a01-af45-28b46151251d.png)
exports
can define these fields.It is missing
import
andrequire
, where the former breaks importing@astrojs/compiler
as it defines this for it'sexports
:And bun picks up
browser
, and ignoresimport
.node docs here define
import
,require
, andnode-addons
which bun ignores. I've never seen that last one but it seems to have some extra logic where the first two can just be treated as a higher priority thanbrowser
.Reproduction:
What is the expected behavior?
Loading the node version of the astro compiler.
What do you see instead?
Additional information
Workaround for astro compiler:
The text was updated successfully, but these errors were encountered: