With vitejs, barrel files are not a good practice, I wrote a jscodeshift script for my personal needs in order to import the component directly from its file rather than from the barrel file.
Would you like me to give you this code to automatically refactor your code base?
With vitejs, barrel files are not a good practice, I wrote a jscodeshift script for my personal needs in order to import the component directly from its file rather than from the barrel file.
Would you like me to give you this code to automatically refactor your code base?
https://vite.dev/guide/performance#avoid-barrel-files