Skip to content

Output static class names #3082

Answered by astahmer
thomasdigby asked this question in Q&A
Discussion options

You must be logged in to vote

making a bundler plugins with source code transformations is a whole different beast than "just" using static analysis and generating a CSS sheet based on that

it means you have:

  • to support potentially complex transformations (what do you do for conditionals ?, how do you transform a cva call ? what hapens if xxx is not statically extractable in css(xxx) ? etc)
  • support HMR in different bundler (vite/rollup webpack/next parcel etc), in different environements (CSR, SSR, both)

fwiw it's exactly what I started exploring a while ago here, but I don't want to have to maintain this on my own, contributions are welcome and the foundations are here

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thomasdigby
Comment options

Answer selected by thomasdigby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants