mui / pigment-css

Pigment CSS is a zero-runtime CSS-in-JS library that extracts the colocated styles to their own CSS files at build time.
MIT License
396 stars 19 forks source link

[next.js] Support non-Babel mode: SWC #87

Open oliviertassinari opened 1 month ago

oliviertassinari commented 1 month ago

Summary

Same use case as https://twitter.com/t3dotgg/status/1790897260731224322

Examples

No response

Motivation

Search keywords: -

o-alexandrov commented 1 month ago

Isn’t it a duplicate of https://github.com/Anber/wyw-in-js/issues/69 ?

and this issue is not exclusive to next.js, it’s applicable to vite and any other bundler in the future

oliviertassinari commented 1 month ago

I think it's nice to have both issues, there isn't necessary a direct correlation between the two.