jimp-dev / jimp-dev/jimp

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.

Open
#1,355 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# 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:
Vite reference:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.