Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global TextEncoder initialization prevents tree-shaking #13211

Open
waiter opened this issue Mar 12, 2025 · 0 comments
Open

Global TextEncoder initialization prevents tree-shaking #13211

waiter opened this issue Mar 12, 2025 · 0 comments
Labels

Comments

@waiter
Copy link

waiter commented Mar 12, 2025

I'm using React Router as a...

library

Reproduction

const encoder = new TextEncoder();

System Info

no need

Used Package Manager

yarn

Expected Behavior

after build, no TextEncoder

Actual Behavior

still has new TextEncoder

Image

@waiter waiter added the bug label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant