-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
refactor(transformer/typescript): remove all code that removes ts annotations #2992
refactor(transformer/typescript): remove all code that removes ts annotations #2992
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
60861e2
to
00772cb
Compare
CodSpeed Performance ReportMerging #2992 will degrade performances by 3.26%Comparing Summary
Benchmarks breakdown
|
Wait ... this is still useful for downstream tools if they want to work with esnext ast. Sorry for the confusion. |
Can you give examples of how this works downstream? |
AST -> transformer -> (third party tools working on esnext syntax) -> codegen |
The third party still use oxc_codegen, so whether or not the transformer removes typescript annotation does not affect third party tools. Am I understanding right? |
Another note: subsequent runs don't need to visit these extra nodes anymore, which can be a lot. |
Yes, indeed |
As #2951 (comment) said. oxc_codegen will not print all typescript-only code. So removing ts annotations is redundant