airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
29.85k stars 2.85k forks source link

node_modules/lottie-web/build/player/lottie.js (17010:32) Use of eval in "node_modules/lottie-web/build/player/lottie.js #3025

Open DhWalidkhl opened 10 months ago

DhWalidkhl commented 10 months ago

Tell us about your environment

What did you do? Please explain the steps you took before you encountered the problem.

What did you expect to happen?

What actually happened? Please include as much relevant detail as possible.

Please provide a download link to the After Effects file that demonstrates the problem.

bodymovin commented 10 months ago

hi, if you're not using expressions you can point to the lottie-light version that does not use eval

TheSonOfThomp commented 5 months ago

Duplicate of https://github.com/airbnb/lottie-web/issues/2927?

jorisw commented 4 months ago

hi, if you're not using expressions you can point to the lottie-light version that does not use eval

~How?~

Apparently this is done by importing directly from a Lottie-light file:

Replacing import lottie from "lottie-web"; with import lottie from "lottie-web/build/player/lottie_light"; and using renderer: "svg", worked for me.