react-tippy
react-tippy copied to clipboard
Clarify use of 'lightweight' in describing this library
react-tippy advertises itself as "a lightweight tooltip for React."
At a glance this would seem to be a misuse of the word 'lightweight'. Bundlephobia reports the size of react-tippy as 189.5kB minified and 56.7kB gzipped. This seems pretty far from lightweight, unless lightweight is intended to describe something besides size. In that case, there's probably a more accurate word to describe react-tippy.
As a point of comparison, react-popper (also based on popper.js) is only 30kB minified and 9kb gzipped. This includes popper.js in the build.
Perhaps there's some bundling or dependency management errors that are contributing to bundle size which could be looked into.
I mean you can just check the dist
directory, I do not understand how it could be 190kb when the un-minified js is around 80kb. Not that I am defending that size, it is still utter insanity for a tool-tip library.
Oh... it is that popper.js dependency.
Popper.js gzipped is 7kb, the v1 of react-popper doesn't bundle Popper.js anymore, but it bundles quite some polyfills that should probably be reduced 🙄