-
Notifications
You must be signed in to change notification settings - Fork 223
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
Migrating explicit-any takes far longer than I expected #121
Comments
I will close this. |
I think it's worth leaving this open. It doesn't sound right. Are you able to share any more details about your project that might help us figure out the cause? |
I can't share the full code/repo but I noticed an issue with the renaming process.
I had to manually revert the changes to .ts files, rename them to .tsx and rerun migration for those files. Mac OS: v10.15.7 |
Strange, this sounds like it could be a limitation in the ts-migrate/packages/ts-migrate/commands/rename.ts Lines 116 to 119 in e852a1e
(It does look a little brittle, to be fair.) Do you import React using |
Also seeing this using the React 17 JSX transform that does not require importing React (explicit-any took 90 minutes). I think @edsrzf seems to have the best clue into why with |
At the end there were 47 files that were updated. Most of which were less than 200 lines.
lines = 200x14=2800
seconds to finish=92x60=5520
seconds per line = 5520/2280 = 2.42s
This is a very rough estimate but hopefully this information is helpful for anybody worried if there's something wrong with explicit-any.
This is helpful but given most of the other plugins finished in less than a few minutes,
I was expecting 10-20 min for explicit-any but this took way longer than that so I thought there was something wrong with the plugin.
The text was updated successfully, but these errors were encountered: