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
389 stars 18 forks source link

[examples] Switch Next.js examples to ESM, remove unnecessary type #125

Open karlhorky opened 2 weeks ago

karlhorky commented 2 weeks ago

Hi @oliviertassinari and others, first of all, thanks for Pigment CSS! I will recommend this to our students at @upleveled :)

Quick PR to fix the Next.js "manual installation" example:

  1. next.config.mjs is now ESM by default since a while
  2. Use common settings from create-next-app
oliviertassinari commented 2 weeks ago

Cool. I guess we should update https://github.com/mui/pigment-css/blob/master/examples/pigment-css-nextjs-ts/ too?

karlhorky commented 2 weeks ago