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

Reduce dependencies #10594

Closed
raymyers opened this issue Oct 5, 2020 · 4 comments
Closed

Reduce dependencies #10594

raymyers opened this issue Oct 5, 2020 · 4 comments

Comments

@raymyers
Copy link

raymyers commented Oct 5, 2020

🚀 Feature Proposal

Reduce the number of dependencies including transitive to <100 .

Motivation

When you create a new project with Jest, there are immediately 347 dependencies pulled in. Many of these are included for just a few lines and consolidated packages with related groups of functionality could be used instead to make the dev workflow more efficient.

The shear quantity of tiny packages is beginning to be recognized as a liability, e.g.
https://www.zdnet.com/article/another-one-line-npm-package-breaks-the-javascript-ecosystem/

If you agree that this is a good goal, I'm willing to help work on it. I wanted to create this issue to gauge reaction before I started working on pull requests. If there are related efforts underway, please point me in the right direction.

Thanks!

@jeysal
Copy link
Contributor

jeysal commented Oct 6, 2020

This is something @cpojer is somewhat passionate about and has recently landed some things to improve, not sure how much improvement that already brought and how many more quick wins we have available.
I'm not personally passionate about it (I'm more looking into the external things that are loaded once per test file which are a major performance bottleneck), but I would help land anything that makes a noticable improvement in install size as long as the added maintenance burden is low.

@jeysal
Copy link
Contributor

jeysal commented Oct 6, 2020

This is a duplicate of #6266

@jeysal jeysal closed this as completed Oct 6, 2020
@raymyers
Copy link
Author

raymyers commented Oct 6, 2020

Thanks @jeysal. I'll check up on #6266 and direct any PRs there.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
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

2 participants