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

Possibility of reducing package size? #34

Open
db798 opened this issue Jul 15, 2024 · 0 comments
Open

Possibility of reducing package size? #34

db798 opened this issue Jul 15, 2024 · 0 comments

Comments

@db798
Copy link

db798 commented Jul 15, 2024

Hi, is there any possibility to reduce the size of this package, from what I can tell it adds ~100MB to the size of my node_modules folder. Not sure if everything is actually needed, maybe it is, just want to verify.

Below is a list of node_modules over 1MB in my project, most are irrelevant but please note that typescript is not listed.
node_modules_without_this_package

After installing, typescript goes to ~66MB and node-libxml is also ~40MB.
node_modules_after_installing_this_package

Note: the before includes libxmljs2 which I'm trying to move away from.

Is there anything that could be done about this? Does typescript actually need to be a dependency, could it be a devDependency? Is there a way to only install specific pre-builds, each one is ~1.4MB but I probably only need one of them.

For some context I'm trying to use this package in a lambda but because this package is so large the lambda is exceeding the allowed size.

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

No branches or pull requests

1 participant