Skip to content

Global TextEncoder initialization prevents tree-shaking #13211

@waiter

Description

@waiter

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions