Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Decrease Package Bloat #69

Closed
3 tasks done
rayhanadev opened this issue Jun 17, 2021 · 2 comments
Closed
3 tasks done

Decrease Package Bloat #69

rayhanadev opened this issue Jun 17, 2021 · 2 comments

Comments

@rayhanadev
Copy link
Collaborator

rayhanadev commented Jun 17, 2021

When I made this package I was quite inexperienced, and truthfully I downloaded whatever I felt like at the moment. Over time this has caused some major package bloat. It has come to the point where ReplAPI.it for NodeJS is 7.05 MB in size, which is... disturbing. To decrease package bloat we could:

  • Remove unnecessary dependencies
  • Homebrew some packages and utilities
  • Use a module bundler, uglifier, and tree-shaker (Rollup is what I had in mind)

I'll fix this in while working on the refactor.

@rayhanadev
Copy link
Collaborator Author

3fe492a removed all dependencies that I was worried about and used some different packages with smaller footprints. I'd say all in all this issue is now resolved.

@rayhanadev
Copy link
Collaborator Author

Post-closure I created a beta version (2.4.0-beta.2) and checked the package size: https://packagephobia.com/result?p=replapi-it@2.4.0-beta.2.

7.05MB to 4.65MB has some serious gains! Looking to drop more if possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant