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

Can typescript abstract encode/decode into separate functions instead of class functions to reduce the file size during tree shaking optimization? #360

Open
art-aier opened this issue Jan 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@art-aier
Copy link

art-aier commented Jan 6, 2025

Can typescript abstract encode/decode into separate functions instead of class functions to reduce the file size during tree shaking optimization?

tree-shaking-explained
https://medium.com/@omkarbhavare2406/optimizing-web-performance-tree-shaking-explained-007208163c88

Building a Tree Shaking friendly JavaScript Package
https://benestudio.co/building-a-tree-shaking-friendly-javascript-package/

for example

encode(person)

@art-aier art-aier added the enhancement New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant