lottie-react icon indicating copy to clipboard operation
lottie-react copied to clipboard

Issue #33, decrease bundle size by using lottie light

Open summerliu opened this issue 1 year ago • 2 comments

My team ran into this issue #33 as well. The lottie bundle size was initially 3.81MB.(see image below) lottie-react

And after implemented it with lottie light, it did reduced to 2.86MB.(also see image below) lottie-react-light

This implementation could refer to https://github.com/dilan-dio4/lottie-light-react/commit/28c5bcbadcbc2b06dc92e0d2d1be1e20c64d5c1d#diff-0b5adbfe7b36e4ae2f479291e20152e33e940f7f265162d77f40f6bdb5da7405 by @dilan-dio4

Let me know if there is any question. Thanks!

summerliu avatar Mar 22 '23 07:03 summerliu

@Gamote Would you mind looking into this year old PR?

It would also remove this security concern:

Use of eval in "../../node_modules/lottie-web/build/player/lottie.js" is strongly discouraged as it poses security risks and may cause issues with minification.

jorisw avatar Feb 13 '24 15:02 jorisw

bump

elix1er avatar Jun 17 '24 05:06 elix1er