chenqingspring / react-lottie

Render After Effects animations on React based on lottie-web
MIT License
1.66k stars 363 forks source link

Any solution to minimize bodymovin? #37

Open walleva opened 6 years ago

walleva commented 6 years ago

As bodymovin is huge, could react-lottie add a prop to control which version of bodymovin to use? I mean, like 'full', 'min' (bodymovin.min), 'light' (bodymovin_light.min). For example, if I only need bodymovin to support svg, do we have a way to require bodymovin_light.min, and make compiled js file as small as possible? Thanks!

spsDrop commented 5 years ago

Yeah adding light would be a serious savings and be far more flexible for adding this.