react-popper-tooltip: Tree-shaking doesn't work
I’m building a component library that uses TooltipTrigger
(version 2.11.1
). Unfortunately, it breaks tree-shaking by probably introducing some side-effects. I’m building with Rollup.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 31 (13 by maintainers)
We just release the hook version of the library. Could you please check if this is still an issue?
So I had a nice discussion with a colleague of mine about this and I finally hit the nail, realising my mistake. I totally understand why it should be externalised now and the exact difference to a peer dependency. Thanks for the great support. 👍
Here’s the reproduction: https://github.com/adi518/react-popper-tooltip-treeshake-reproduction