-
Notifications
You must be signed in to change notification settings - Fork 123
use swc-loader instead of ts-loader #525
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
Conversation
@julianocomg don't you need to change the webpack config too? |
Yeah, my bad. I forgot to push the webpack config change. Fixed now. |
Thanks! Out of curiosity, how much does it actually improve build times? |
Our workers were taking ~1.5 min to compile on our dev's machine. It now takes 5 seconds (not kidding). |
Just added the missing @swc/core dependency. swc-loader needs it to work. |
@bergundy Does the CI for the last commit need to be triggered again? |
@julianocomg I just triggered it |
Seems that the last 2 CIs are stuck :( |
Wow, thanks! 😄
Yeah that's a long test! 😆 Since it's in progress, I can't manually re-run them. Try merging with latest |
@lorensr Unfortunately that option is not appearing to me for this existing PR, but I merged main, let's see what happens. The "sdk-features-test" job seems to be failing already but I don't think the error is related to my change 🤔 |
@lorensr oh... now seems that a lot of things are failing after that merge. none of them seem to be related to swc/tsc |
Sorry about that! For now, I figured out how to manually restart. I'll work on fixing the sdk-features action soon, and the windows built-and-test is intermittent—haven't looked into that one yet, tracking here: #496 (comment) |
Okay the windows build-and-test failure is much less intermittent than it used to be! I'll look into it tomorrow. |
Fixed test in #526. Merged w/ latest main locally and tests pass. |
* use swc-loader instead of ts-loader * change webpack config to use swc-loader * add @swc/core as dependency of worker package * Update package-lock.json
@lorensr that's awesome! thanks dude!! 🥳 |
Thank you! |
* use swc-loader instead of ts-loader * change webpack config to use swc-loader * add @swc/core as dependency of worker package * Update package-lock.json
SWC is much faster and robust than TSC. It's written in Rust and can be used with webpack by using their swc-loader.
What was changed
Replaced ts-loader by swc-loader.
Why?
Checklist
Closes
How was this tested: