Bun v0.0.55 #79
Jarred-Sumner
announced in
Announcements
Replies: 1 comment 2 replies
-
Note for Archlinux user: somehow Archlinux still stuck on glibc 2.33 so you need to build glibc by yourself or compile bun on your machine. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release is mostly just bug fixes.
CommonJS <> ESM interop reliability improvements
Bun now preserves live bindings when referencing bundled code. This fixes a number of subtle bugs in different packages.
This also updates the preferred extension order depending on how code is imported. Previously,
.mjs
files were ignored and that was silly. Now, when you useimport
, Bun will attempt to load.mjs
or.mts
before trying.js
or.cjs
Template literal parsing bug
Before, this code caused an assertion failure in Bun's JavaScript parser due to function being defined in the template tag:
The problem was related to when scopes for template literal tags were visited. This has been fixed.
try
&require()
Previously, this code would produce a build error:
In each of these cases, errors are caught at runtime, so it should not produce a build error.
Top-level await is now enabled
Top-level await will no longer error when targeting browsers, however you should know that since Bun does not transpile for backwards compatibility, you will need to be sure it is safe to use in the target environment.
Using
module.exports
with top-level await is undefined behaviorThis discussion was created from the release Bun v0.0.55.
Beta Was this translation helpful? Give feedback.
All reactions