Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning about "Use of eval" #217

Closed
rjwalters opened this issue Jun 21, 2023 · 2 comments
Closed

warning about "Use of eval" #217

rjwalters opened this issue Jun 21, 2023 · 2 comments

Comments

@rjwalters
Copy link

I see the following warning in my build:

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

Is this something I should be concerned about?

@rjwalters rjwalters changed the title warning about "Use of Eval" warning about "Use of eval" Jun 21, 2023
@fedyk
Copy link

fedyk commented Oct 11, 2023

This eval seems to be a part of airbnb/lottie-web package.

At first glance, it looks like legit usage. I'd appreciate it if someone checked this as well.

@samuelOsborne
Copy link
Member

Hi @fedyk @rjwalters Its part of the lottie-web package.

If you dont want expression support and want to get rid of the warning, please use the dotlottie-player (supports .json and .lottie) with the "light" prop. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants