Remove unused dependencies in React

How do I detect unused dependencies in a React project? I know there are npm packages that can do this, but they only work with regular js projects, not the Reacts jsx file. Is there a similar package that works with React?

+3


source to share


1 answer


try the defect , Depcheck is a tool for analyzing dependencies in a project to see how each dependency is used, which dependencies are useless, and which dependencies are missing from the .json package.



+1


source







All Articles