Any plan to support swc? #29542
Replies: 4 comments 7 replies
-
@Enter-tainer I was wondering if you've already tried customising your webpack config and using swc-loader? While it seems fairly straightforward, I doubt it would be an issue-free transition, judging by the swc / babel comparison here https://swc.rs/docs/comparison-babel/ It would be great to to see what issues, if any, people come up against when replacing babel-loader for swc-loader. I haven't personally tried it but I'd be interested to hear others' experience, if anyone has tried it out. |
Beta Was this translation helpful? Give feedback.
-
Sooner or later I think this is a must. Next.js is already doing it |
Beta Was this translation helpful? Give feedback.
-
I'm also very interested in using swc or esbuild with gatsby, without sacrificing all the other optimizations already in place for gatsby builds. |
Beta Was this translation helpful? Give feedback.
-
This is one of the things that next.js hired a full time developer for that was an The reason why is neither I'm personally going to try next.js v12 to see how webpack 5
esbuild
still using gatsby for the moment. Would love a miracle to happen :) |
Beta Was this translation helpful? Give feedback.
-
Hi! I recently checked the build log of my site. It takes ~400s in total, in which "Building production JavaScript and CSS bundles" takes 80s. And that is pretty much. Is it possible for me to use swc, instead of babel to transpile my code?
swc is a super-fast js transpiler written in rust. It can be used to replace babel. It is around 18x-40x faster. And it seems that it support pretty much features such as jsx, typescript, tsx and etc.
Beta Was this translation helpful? Give feedback.
All reactions