Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

barrel component is not good with vitejs #459

Open
vincehi opened this issue Oct 28, 2024 · 0 comments
Open

barrel component is not good with vitejs #459

vincehi opened this issue Oct 28, 2024 · 0 comments

Comments

@vincehi
Copy link

vincehi commented Oct 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant