Using SWC instead of Rollup and Babel #254
petarvujovic98
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SWC is a newish TypeScript/JavaScript compiler, bundler and minifier written in Rust. It is used as a drop in replacement for Babel and some projects like NextJs and Nx use it as the default compiler. I have been looking into it over the weekend and it looks like it wouldn't be too difficult to rewrite or TS/JS compilation and build tools to use SWC.
This would have the added benefit of all of the strictness and speed that Rust brings to the table. Usually SWC is around 20-70x faster than Babel.
If this is something we would like to do in the future I would be up for working on the PR to transition to it...
Beta Was this translation helpful? Give feedback.
All reactions