-
I want to use stylex in Next.js with swc,but the document only mentioned the way used babel. |
Beta Was this translation helpful? Give feedback.
Answered by
nmn
Jul 16, 2024
Replies: 1 comment 2 replies
-
try using the CLI. Here's an example project: https://github.com/nmn/next-15-with-stylex-cli |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since we don't have an SWC plugin, this is the only option if you want to use SWC. It's also more reliable than how the Next.js plugin works.
Further, other solutions, like Tailwind, rely on code-gen which is essentially the same process.