Skip to content

Conversation

@evanw
Copy link
Owner

@evanw evanw commented Oct 5, 2025

With this change, esbuild's binary loader will now use the new Uint8Array.fromBase64 function unless it's unavailable in the configured target environment. If it's unavailable, esbuild's previous code for this will be used as a fallback.

Fixes #4286

@bakkot
Copy link

bakkot commented Oct 15, 2025

Might be worth also having the fallback implementation check for fromBase64 at runtime. That way users who need support for older browsers can still get the native (and likely faster) implementation for their consumers who are on newer browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update esbuild's __toBinary helper to use Uint8Array.fromBase64 if available

3 participants