-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Bug that kill TypeScript build time #57075
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
Comments
This type is a shorthand for writing the 50,000+-member expansion of all its possible values, so its performance is the same as if you had written a 50,000-member type. |
You are right, this is not a defect or a bug. |
There is a threshold for an error, but this sample is slightly below it |
so the threshold is 50k and we reach to little lower. ok. |
It's not configurable, and likely won't be: #44997 (comment) |
10x for the data. |
π Search Terms
"long time", "stuck build"
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
the build time grow exponential because of the amount of permutations we have and it Stuck the IDE completely and make the TSC to take 4-5x more build time.
π Expected behavior
run faster
Additional information about the issue
just change the line:
to:
and all run fast.
The text was updated successfully, but these errors were encountered: