-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Use SWC to strip types for "--no-check" flag #6895
Use SWC to strip types for "--no-check" flag #6895
Conversation
@kitsonk I have a question for you - if we'll land this PR is anything stopping us from using TS compiler with EDIT: Statistics for
It's 250-300ms, or 15-20% of potential saves in compile time |
Couple thoughts... I know we are eager to do this, but I think the refactor of the compiler is important (#6894). This should be even easier to implement when that is redone. Second, we can't use it for the type checking without breaking a lot of code in the wild, especially code that doesn't use |
I agree that compiler refactor is important, I don't suggest trying to hook SWC up to type checking process in this PR. Are you ok with landing change just for
@kitsonk thanks for clear explanation, that sounds good to me. |
Yeah, I hadn't actually looked at the changes... straight forwards and should be easy to integrate. 👍 Thinking more, we might want to help people make the transition. I know we have avoided it, but if we surfaced |
This reverts commit 522f794.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - very nice
v1.2.1
this PR
Binary size increased from
55942928
to58668472
Closes #6864
Blocked by swc-project/swc#903