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

Use of eval in "node_modules/jimp/dist/browser/index.js" is strongly discouraged as it poses security risks and may cause issues with minification. #1355

Open
rallets opened this issue Oct 30, 2024 · 0 comments

Comments

@rallets
Copy link

rallets commented Oct 30, 2024

Expected Behavior

Vite can build using Rollup without warnings.

Current Behavior

Rollup is warning about eval usage.

node_modules/jimp/dist/browser/index.js (13:32539): Use of eval in "node_modules/jimp/dist/browser/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
  • Jimp Version: 1.6.0
  • Operating System: Windows 11
  • Node version: 20.17.0

Context

I'm using a very small subset of what Jimp can do, Jimp.read, resize, ResizeStrategy, getBuffer.
Is it possible somehow to import only what's needed to try to avoid the eval ?

Rollup reference: https://rollupjs.org/troubleshooting/#avoiding-eval
Vite reference: vitejs/vite#12103

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

1 participant