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

This package is quite large #383

Open
mprast opened this issue May 13, 2021 · 1 comment
Open

This package is quite large #383

mprast opened this issue May 13, 2021 · 1 comment

Comments

@mprast
Copy link

mprast commented May 13, 2021

Hi all - I'm really glad that bee-queue has a full-featured monitoring dashboard and I don't want to look this particular gift horse in the mouth, but at a 14.5 MB install size bull-arena is one of my largest dependencies (it might be the largest in fact). Truthfully I wasn't expecting arena to be this heavyweight, especially since it looks like it features embedding as a first-class use case, and since bee-queue has such an emphasis on size and simplicity.

Has there been any thought on how to make this package smaller? Here are a few things that jumped out at me looking at your package.json:

  • lodash looks like it's used in only a handful of places; using per-method packages instead of a bulk import would be a bit more work but is probably be a pretty cost-effective way to save some space.
  • if you're committed to handlebars I understand, but if not you may want to consider using a lighter-weight view framework. eta or preact come to mind but I'm sure there are many others.
  • in the same vein, dayjs is a smaller alternative to moment that you may want to look into.

Happy to submit a PR for any of these if you decide any one of them are worth pursuing, and of course feel free to ignore this if work is already being done to make arena more compact, or if there are good reasons why it can't be smaller. Thanks for taking a look!

@bradvogel
Copy link
Contributor

You're right - this package is very large for what it does. Your ideas are great. PRs would be appreciated!

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

2 participants