Replies: 2 comments 2 replies
-
Hi @schmolie, I am not familiar with |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello @schmolie, did you resolve this issue? I have a similar issue with headlessui and I cannot make my component library tree-shakeable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I use rollup to bundle a component library that exports multiple components. I'm investigating the possibility to make use of radix components and started looking into the accordion.
I created AccordionFilter components which only renders
@radix-ui/react-accordion
components withclassName
to add styling. When I try to bundle my package it's no longer tree shakeable when I include AccordionFilter components.Since I'm unsure on what's happening I wanted to ask here. Maybe I'm missing something obvious?
src/index.ts
rollup.config.js
Build with AccordionFilter components followed by npx agadoo
Build without AccordionFilter components.
Thanks for taking the time and for an awesome library!
Beta Was this translation helpful? Give feedback.
All reactions