-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update sharp special case for pnpm (#387)
This ensures we trace child optional dependencies as well so that the symlink hierarchy is maintained for pnpm. x-ref: vercel/next.js#59346 x-ref: lovell/sharp#3967 --------- Co-authored-by: Steven <steven@ceriously.com>
- Loading branch information
Showing
4 changed files
with
105 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const sharp = require('sharp'); | ||
|
||
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters