Skip to content

Conversation

@ChALkeR
Copy link
Collaborator

@ChALkeR ChALkeR commented Feb 10, 2026

We trust browsers to always detect their TextDecoder / TextEncoder implementation as native, so no additional fallback is needed there

CI on browsers covers this

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce browser bundle size for the UTF-8 implementation by swapping the internal JS fallback module with a browser-specific replacement.

Changes:

  • Added fallback/utf8.browser.js and included it in the published files list.
  • Added a package-level browser field mapping ./fallback/utf8.js./fallback/utf8.browser.js.
  • Adjusted react-native mappings to avoid unintended browser aliasing in RN.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
package.json Adds browser alias for ./fallback/utf8.js and includes the new browser stub in published files.
fallback/utf8.browser.js Introduces the browser-replacement module currently exporting encode/decodeFast as null.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ChALkeR ChALkeR force-pushed the chalker/small/1 branch 4 times, most recently from c000c49 to 86a2826 Compare February 10, 2026 03:34
@ChALkeR ChALkeR merged commit 6160cc0 into main Feb 10, 2026
33 checks passed
ChALkeR added a commit that referenced this pull request Feb 10, 2026
@ChALkeR ChALkeR deleted the chalker/small/1 branch February 10, 2026 06:33
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.

1 participant