Commit dd47ebf
authored
fix: replace jimp with selective @jimp/* imports to fix ESM crash (#333)
The full `jimp` package pulls in `@jimp/plugin-print`, which has a
broken ESM default import of `simple-xml-to-json` — crashing on
`npx` startup (Node 22+). We only use read, crop, and write, so
import `@jimp/core` with just the plugins and formats we need.
Closes #3291 parent a077ace commit dd47ebf
4 files changed
Lines changed: 33 additions & 348 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
0 commit comments