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 #704

Open
ai opened this issue May 26, 2021 · 0 comments
Open

Reduce dependencies #704

ai opened this issue May 26, 2021 · 0 comments

Comments

@ai
Copy link
Collaborator

ai commented May 26, 2021

According to why-npm-i-so-long Astroturf 1.0 took 16 MB of node_modules, which is huge for this project.

npm.anvaka.com shows a huge network of dependencies.

20210526115016

I see a few ways to reduce dependencies:

  • Replace chalk with colorette. It has 0 sub-dependencies and works faster (we migrate to it in PostCSS).
  • Replace comsiconfig to lilconfig. It has the same API but much smaller dependencies (I do the same in Size Limit).
  • Do not load the whole lodash and add only subproject (like lodash.uniq) to dependencies
  • Review other dependencies and avoid small and simple dependencies with big tree of sub-dependencies
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