next.js
c4d812cc - fix: lazy load sharp (#65484)

Commit
1 year ago
fix: lazy load sharp (#65484) > [!NOTE] > This PR is easiest to review without whitespace. > See https://github.com/vercel/next.js/pull/65484/files?w=1 This PR fixes an issue where importing `image-optimization` was loading sharp but we don't want to load it until we attempt to optimize an image. So this PR changes it to lazy load on first invocation to avoid metadata trying to initialize sharp. ![image](https://github.com/vercel/next.js/assets/229881/61f45f3c-922a-45b6-8ba6-b32764fd0257) Closes NEXT-3355
Author
Parents
Loading