Member-only story
How to Check if You Have Unused Dependencies in Your JavaScript App
See unused node modules and remove them
Whether you’re developing a personal project or a professional one, we all use sometimes a dependency to fix a problem, to try something, or to develop a client use case. However, the last version of the application may contain a variety of dependencies compared to its starting state that we don’t necessarily use finally in the application. For several reasons, clients need changing, fixing problems in the app, and so on.
That’s why checking at some moment the general state of the app is important. It’s really a waste to have dependencies that we don’t use. In the end, it’ll cost in terms of maintenance, optimization and cuts down the performance of your app significantly. Therefore we end up with a bundle size that has what we need and what we don’t.
That’s why I choose to talk about how to check for these unused deps and remove them! Since tracking them manually with a big project is just a headache. So, I’m coming with a solution to protect your nerves in this article and kill those unused dependencies efficiently.