![Cover image for How I brought down my project's dependency tree from 36 packages to 4 packages](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F7aeynzq7icpcv0vf51wn.png)
Before you npm install package or <script src="https://coolframework.com/file.js"> do you ever ask yourself if you really need this package/f...
For further actions, you may consider blocking this person and/or reporting abuse
Just make sure to cover all of your handwritten functionality with tests now
yes working on it :D thanks for reading 🌻
This is the right kind of thinking. Thumbs up.
Thank you :)
Good investigation and solution from your part.
Its so refreshing to see someone caring about how much junk they ship with the app.
I hope more people will take care about it.
Thank you so much🌻🌻 and yes every developer should spend some time deciding what frameworks or libraries are actually needed :D
I'll always have a look through a packages dependencies list before considering adding it to a project.
A tool that's helpful when doing this: bundlephobia.com
Oh I didn't know about bundlephobia thank you for sharing
I used almost a similar approach to remove lodash completely from my project 😅😅
Personally I feel it's a right approach.
Do you have a link to this commit or PR? Would love to see how you did :D
Sorry bro it was a private repo of my employer.
oh ok no problem. good job though :D
👍 that’s brilliant
thank you so much :D
I do the same with my PHP dependencies. I give preference to packages without a ton of sub dependencies.
Yes I feel this is right approach and applies to any domain and any language and even on the frontend