styled-components / styled-components-website

The styled-components website and documentation
https://styled-components.com
MIT License
612 stars 436 forks source link

Serve images with next-gen formats #903

Open brnt-toast opened 1 year ago

brnt-toast commented 1 year ago

Next.js does this automagically with next/image component readmore about next.js

brnt-toast commented 1 year ago

I'll look into this one tomorrow night. If there isn't a separate pull request from a branch by Sunday the 7th. Assign it to me so I can track this issue better and start working on the TS conversation after.

brnt-toast commented 1 year ago

update: I hit a road block. The next-gen formats using next/images requires next13, which requires react18, and we a have dependency on @wojtekmaj/enzyme-adapter-react-17 that locks into react17 because enzyme is now abandoned. It also recommend to move towards react-testing-library.

Combined with moving over to typescript has left me be bit stumped.

vsnikhilvs commented 2 months ago

I think its better upgrade to React 18 and to RTL.