Replies: 5 comments 4 replies
-
Sharing from Discord:
|
Beta Was this translation helpful? Give feedback.
-
I updated the setup docs to make this clearer that the Babel plugin is optional with Next.js: https://vanilla-extract.style/documentation/setup/#nextjs |
Beta Was this translation helpful? Give feedback.
-
The plugin seems to be required for testing though (unless I'm misreading the docs). Next.js is also using swc in Jest, which makes it impossible to use the plugin there. Is there any way to keep existing test setup without falling back to babel? |
Beta Was this translation helpful? Give feedback.
-
I was able to spin some free time to port It is mostly compatible I believe, except the part setting its file scope identifier from pkg.json / pkg name as SWC's plugin cannot traverse up package.json. It uses cwd / plugin config specified name instead. If this is something useful, I'd like to discuss making an upstream PR to maintain plugin codes in a single place. |
Beta Was this translation helpful? Give feedback.
-
This breaks on latest release of NextJS (13.2.0), probably due to this changes vercel/next.js#45619. I suggest to keep using 13.1.6 until it's fixed. |
Beta Was this translation helpful? Give feedback.
-
Nextjs 12 uses rust compiler instead of babel now which is a lot of faster as it's written on rust so it would be good if there would be a swc plugin for Vanilla extract so I can use it with nextjs without the babel plugin
Beta Was this translation helpful? Give feedback.
All reactions