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

[FEATURE] Package size is large (~2 MB) #253

Open
xShadowBlade opened this issue Sep 5, 2024 · 0 comments
Open

[FEATURE] Package size is large (~2 MB) #253

xShadowBlade opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@xShadowBlade
Copy link
Owner

Is your feature request related to a problem? Please describe.
When installing from npm, the unpacked size is 2.31 MB.

Describe the solution you'd like
An optimization of the /dist/ directory, mainly the *.js files could be optimized because they all reuse the same code (break_eternity.js, reflect-metadata, and class-transformer which increases size considerably

Another optimization is to remove the /src/ directory from npm. Currently, it is only there if people want to compile it with their own build tool by importing from "emath.js/ts/*", and it could be moved to another package (e.g. @emath.js/src)

Describe alternatives you've considered
N/A, see above.

Additional context
N/A

@xShadowBlade xShadowBlade added the enhancement New feature or request label Sep 5, 2024
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