ben-ryder / jigsaw

A design system and component library for use in my personal projects.
https://jigsaw.benryder.dev
GNU General Public License v3.0
0 stars 0 forks source link

Component library usage may not be tree shakeable #24

Closed ben-ryder closed 1 year ago

ben-ryder commented 2 years ago

Describe the bug When using the component library in an application you must point tailwind to the package's node_modules folder in order to stop component classes from being removed at build time. This may mean that the output css includes all classes used in the library.

I need to investigate if this is true, and if it is then look into if/how this issue could be solved.

Expected behavior If possible only classes on components used in the application should be included at build time.

This is quite possibly something that must be solved on the application level, not the library level, but I'm raising it here anyway as there might be some way that the library can help.

ben-ryder commented 1 year ago

closing as related to old React library