-
Notifications
You must be signed in to change notification settings - Fork 153
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(components): shortcut to find unused components #358
Comments
Does this work at all? It shows hundreds of unused components for me but I'm pretty sure they are used. Maybe It only shows as used if I'm on the same page? @antfu |
@metkm I think this worked for me in the past but recently it only shows components not used on the current page indeed. |
|
This sounds pretty useful ! |
I was thinking about having this feature, and I see that there is already a proposal. I can only add that the same thing could be done also for composables, under the same exact reasoning. Thanks by the way! |
Sounds like an analyzer to run at buildtime.Will be interested too. |
This would be amazing to have fixed again! I am trying to clean up a large Nuxt codebase with lots of dead components, and having a list of all the unused components would help a bunch. |
This would definitely be very useful |
馃啋 Your use case
In bigger projects and after refactoring/new features, having an overview which of the hundred components are still in use is not always given. Thus, it'd be amazing to figure that out through the devtools and the component tab.
馃啎 The solution you'd like
In the component tab, having an option to list only unused components.
There might be caveats with dynamic imports or similar (not sure?) but eventually, that could be shown as warning.
馃攳 Alternatives you've considered
No response
鈩癸笍 Additional info
Happy to also work on the feature if people are interested in it
The text was updated successfully, but these errors were encountered: