Sorry for posting a question here 🙏 I'm really interested about your experience with tsup and styled-jsx.
I see you've chosen to style your component with raw style and id. That's probably a good choice for this particular project.
But what what you do if you had to develop a component library for NextJS?
You'd probably consider styled-jsx which is NextJS' default styling library, right?!
Unfortunately, styled-jsx is not compatible with tsup because it requires a transpilation step with babel macro/plugin. And tsup is based on esbuild which is unrelated to babel at all.
That was my research, maybe you'll be kind enough to share yours 😉
It's really unclear how to develop a component library for NextJS with tsup / tsdx / vite / microbundle / etc... besides configuring Webpack/Rollup from the ground up. Every high-level tool I try is incompatible with styled-jsx expectations in one way or another.
Hello, Apal. Thank you for making this library!
Sorry for posting a question here 🙏 I'm really interested about your experience with
tsup
andstyled-jsx
. I see you've chosen to style your component with rawstyle
andid
. That's probably a good choice for this particular project.But what what you do if you had to develop a component library for NextJS? You'd probably consider
styled-jsx
which is NextJS' default styling library, right?!Unfortunately,
styled-jsx
is not compatible withtsup
because it requires a transpilation step withbabel
macro/plugin. Andtsup
is based onesbuild
which is unrelated tobabel
at all. That was my research, maybe you'll be kind enough to share yours 😉It's really unclear how to develop a component library for NextJS with
tsup / tsdx / vite / microbundle / etc
... besides configuring Webpack/Rollup from the ground up. Every high-level tool I try is incompatible withstyled-jsx
expectations in one way or another.