Skip to content

fix(utils): remove #REVERSE static field for better tree-shaking#32

Merged
lete114 merged 1 commit into
mainfrom
fix/base64-tree-shake
Jun 19, 2026
Merged

fix(utils): remove #REVERSE static field for better tree-shaking#32
lete114 merged 1 commit into
mainfrom
fix/base64-tree-shake

Conversation

@lete114

@lete114 lete114 commented Jun 19, 2026

Copy link
Copy Markdown
Member

Replace Object.fromEntries-based #REVERSE lookup table with #CHARS.indexOf() to eliminate function calls in class static field initializers. This allows Vite/Rollup to properly tree-shake Base64 when unused.

Replace Object.fromEntries-based #REVERSE lookup table with
#CHARS.indexOf() to eliminate function calls in class static
field initializers. This allows Vite/Rollup to properly
tree-shake Base64 when unused.
@lete114 lete114 merged commit 265c81e into main Jun 19, 2026
4 checks passed
@lete114 lete114 deleted the fix/base64-tree-shake branch June 19, 2026 06:51
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