Closed JReinhold closed 1 day ago
sharp is a pretty heavy dependency of the @storybook/nextjs framework, at 29 MB.
sharp
@storybook/nextjs
AFAIK it's only used to detect the size of AVIF images:
https://github.com/storybookjs/storybook/blob/0811ca8bd592dbee4eadb94f46fccadda21fe0bf/code/frameworks/nextjs/src/next-image-loader-stub.ts#L50-L63
Can we perhaps replace it with image-dimensions which is only 15 KB and supports AVIF too?
image-dimensions
Closing because sharp is already depended on by next, so it will just reuse sharp from that dependency-chain as long as they have it installed there.
next
sharp
is a pretty heavy dependency of the@storybook/nextjs
framework, at 29 MB.AFAIK it's only used to detect the size of AVIF images:
https://github.com/storybookjs/storybook/blob/0811ca8bd592dbee4eadb94f46fccadda21fe0bf/code/frameworks/nextjs/src/next-image-loader-stub.ts#L50-L63
Can we perhaps replace it with
image-dimensions
which is only 15 KB and supports AVIF too?