cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.74k stars 75 forks source link

barrel component is not good with vitejs #459

Open vincehi opened 3 weeks ago

vincehi commented 3 weeks ago

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