better-react-spinkit icon indicating copy to clipboard operation
better-react-spinkit copied to clipboard

Depend only on required lodash modules: range, memoize

Open juhamust opened this issue 8 years ago • 3 comments

Currently, better-react-spinkit requires whole lodash which increases the size of the bundle unnecessarily. Instead, use specific modules: lodash.memoize and lodash.range

https://github.com/bentatum/better-react-spinkit/search?utf8=%E2%9C%93&q=lodash&type=

juhamust avatar Nov 23 '17 10:11 juhamust

Just a note on this if ever approved, but it would be super nice to not also require the latest and strict version of each module. I would guess the requirements for this package are much looser, perhaps (^4.0.0), or something like that.

andoq avatar Feb 07 '18 19:02 andoq

I face this issue right now. Bloats up my bundle by 1M 😱

AndyOGo avatar Oct 18 '18 15:10 AndyOGo

Thinking of releasing my own version of this package with this issue resolved with name much-better-react-spinkit.

3 reacts and I'll do it.

abdullahtariq1171 avatar Mar 03 '20 12:03 abdullahtariq1171