fix: collected usage count of components
đ The bug
Usage count of components (user and build-in) seems to be incorrect (in combination with @nuxt/i18n?)
If you take a look at the given stackblitz example you can find CiButton to be used at pages/index.vue and pages/about/index.vue. At pages/about/index.vue there is also the build-in ClientOnly component used.
If you open the DevTools the usage count of the components seems to be incorrect.
đ ī¸ To reproduce
https://stackblitz.com/edit/github-3wcxar
đ Expected behavior
The usage count of the CiButton component should be 2 and point to the related pages.
The usage count of ClientOnly should be 1 and point to the related page.
âšī¸ Additional context
I am using https://i18n.nuxtjs.org/ module and maybe this behavior is related to the usage of this module.
This is a known limitation, because of Vite's nature of being on-demand, only the modules that have been requested will be presented in the graph. We will later add a button to "Travse all components" to make it more accurate.