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

SWC with Type Checking – Build Time Increased #10126

Closed
gunjourain112 opened this issue Feb 28, 2025 · 1 comment
Closed

SWC with Type Checking – Build Time Increased #10126

gunjourain112 opened this issue Feb 28, 2025 · 1 comment

Comments

@gunjourain112
Copy link

Describe the feature

I'm developing with Nest.js v11 and tested SWC for faster builds.

  • Jest Tests: 71s → 20s
  • nest start -b swc: 7.69s → 2.16s
  • nest start -b swc --type-check: 8s (same as old tsc build)

Since enabling type checking doesn't provide much of a speed improvement, fully adopting SWC for my workflow is challenging.


Current Workaround:
I’m using SWC only for Jest tests to speed up development.
For deployments, I’m still using the standard tsc build for type checking.
Additionally, since the speed difference in local development is minimal, I continue using tsc for builds.


Question:
Is there a way to improve SWC's type-checking speed?
Can it be optimized or parallelized for better performance?

Thanks!

Babel plugin or link to the feature description

No response

Additional context

No response

@kwonoj
Copy link
Member

kwonoj commented Feb 28, 2025

SWC doesn't do any typecheck, that options is from nest.js using typescript internally.

@kwonoj kwonoj closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants