Files
Niklas MischkulnigandGitHub 3ba311dd13 Turbopack: fix tracing of [email protected] (#94845)
The logic is slightly less brittle now.
It broke because of this rename in v0.35:
```
@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node
->
@img/sharp-darwin-arm64/lib/sharp-darwin-arm64-0.35.1.node
```
2026-06-17 12:00:35 +02:00

8 lines
206 B
JavaScript

const sharp = require('sharp034')
const roundedCorners = Buffer.from(
'<svg><rect x="0" y="0" width="200" height="200" rx="50" ry="50"/></svg>'
)
sharp(roundedCorners).resize(200, 200).png().toBuffer()