react-confetti-explosion icon indicating copy to clipboard operation
react-confetti-explosion copied to clipboard

The package shouldn't depend on all of `lodash`

Open wescopeland opened this issue 1 year ago • 0 comments

Currently, the bundle size is roughly 31kB even though the only lodash functions used are isEqual(), round(), and range().

lodash is not tree shakeable.

Some of these can be done with vanilla JS. Another alternative would be using lodash functions re-exported as npm modules, eg lodash.range.

wescopeland avatar Oct 23 '23 20:10 wescopeland