Sitemap

JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

How to Check if You Have Unused Dependencies in Your JavaScript App

See unused node modules and remove them

3 min readMar 2, 2021

--

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.

--

--

JavaScript in Plain English
JavaScript in Plain English

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

FAM
FAM

Written by FAM

A passionate software engineer and Angular GDE. I love to learn, help & share ❤. Find more about me here: 🔗 www.fatimaamzil.com.

No responses yet