Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the StyleX team working on an SWC Plugin? (No) #70

Closed
chentsulin opened this issue Dec 6, 2023 · 6 comments
Closed

Is the StyleX team working on an SWC Plugin? (No) #70

chentsulin opened this issue Dec 6, 2023 · 6 comments
Labels
question Further information is requested

Comments

@chentsulin
Copy link

It would be nice to have a SWC plugin.
Is there a plan to integrate StyleX with Rust-based SWC as an alternative to Babel? Or, is there any team or individual currently working on this?

@necolas
Copy link
Contributor

necolas commented Dec 6, 2023

There's no plan for SWC plugin from Meta

@nmn nmn changed the title SWC Plugin Is the StyleX team working on an SWC Plugin? (No) Dec 6, 2023
@nmn nmn added the question Further information is requested label Dec 6, 2023
@dgabriele
Copy link

dgabriele commented Dec 7, 2023

Well, that's a bummer. I'm sure lots of people agree. I don't know the first thing it takes to integrate with SWC but anyone out there who does would be greatly appreciated if they undertook it.

@chentsulin
Copy link
Author

Will the Next.js or SWC team plan to work on this, or will they leave it to the community to implement?
@kdy1 @leerob Sorry for mentioning, but I just want to make sure that if there's anyone want to implement the plugin, it wouldn't conflict with the plan of the teams.

@necolas
Copy link
Contributor

necolas commented Dec 7, 2023

Going to close this as "answered" and for the SWC community to support. Thanks

@necolas necolas closed this as completed Dec 7, 2023
@denexapp
Copy link

denexapp commented Jan 4, 2024

Just wanted to mention that it's not allowed to use next/font if you use the custom babel configuration, which is required if you want to use the stylex plugin.

@nmn
Copy link
Contributor

nmn commented Jan 4, 2024

@denexapp We're aware. But we don't use SWC at Meta so we can't justify migrating to it. And maintaining two codebases is out of the question.

As StyleX grows in popularity, NextJS will eventually find a way to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants