You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 ?
Expected Behavior
Vite can build using Rollup without warnings.
Current Behavior
Rollup is warning about
eval
usage.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
The text was updated successfully, but these errors were encountered: