-
Notifications
You must be signed in to change notification settings - Fork 12.8k
skipDefaultLibCheck doesn't work with noLib #5510
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
That was originally the plan for |
@alexeagle I opened #5511; if you'd like to try to pull down that branch and let us know if you get a speedup, we'd appreciate it. |
Thanks for picking that up Daniel. I'll give it a try when Mohamed is done On Tue, Nov 3, 2015 at 1:03 PM Daniel Rosenwasser [email protected]
|
should be in |
Thanks! On Mon, Nov 9, 2015 at 4:05 PM Mohamed Hegazy [email protected]
|
We rely on the performance improvement of skipping type-checking of lib.d.ts.
But, as I described in #5504 our setup is to emit ES6 while using the types from lib.d.ts. (es5).
It seems that if I pass the lib.d.ts on the command line, rather than rely on the auto-loading behavior, then the
isDefaultLib
argument is always false, here:https://github.com/Microsoft/TypeScript/blob/v1.6.2/src/compiler/program.ts#L371
So that means it's slow again:
Could that hardcoded
false
be changed to a predicate of whether the file passed is known to be a standard lib (either with the/// <reference no-default-lib="true"/>
pragma or because the path matchescompilerHost#getDefaultLibFileName
)?Here's the repro directory:
cc @mprobst
The text was updated successfully, but these errors were encountered: