Uh oh!
There was an error while loading. Please reload this page.
Fix crash when checking module exports for export= - #10538
Fix crash when checking module exports for export=#10538Nathan Shively-Sanders (sandersn) merged 3 commits into
Conversation
Also make maxNodeModuleJsDepth default to 0 so that incorrect tsconfigs now let the compiler spend less time compiling JS that is found in node_modules (especially since most people will already have the d.ts and want ignore the JS anyway). jsconfig still defaults to 2.
Andy (Andrewkraft) (@Andy-MS) and Vladimir Matveev (@vladima) can you take a look? |
Mohamed Hegazy (@mhegazy) you should also know about this fix. |
| // @traceResolution: true | ||
| // @noEmit: true | ||
| // @filename: c:/root/tsconfig.json |
There was a problem hiding this comment.
I would replace c:/root/ with just /.
There was a problem hiding this comment.
fixed
Deleted user (ghost)
commented
Aug 25, 2016
👍 |
| /// <reference path="c:/root/typings/index.d.ts" /> | ||
| import * as foo from "shortid"; | ||
| foo.x // found in index.d.ts | ||
| foo.y // ignored from shortid/index.ts |
There was a problem hiding this comment.
shortid/index.js and not shortid/index.ts.
There was a problem hiding this comment.
fixed
Mohamed Hegazy (mhegazy)
commented
Aug 25, 2016
can you add the same test with maxNodeModuleJsDepth == 1 and then the error message should be on |
Mohamed Hegazy (mhegazy)
commented
Aug 25, 2016
👍 |
Actually if there is a d.ts, then it is always used. There is no way to get the compiler to prefer |
| // @noEmit: true | ||
| // @filename: c:/root/tsconfig.json | ||
| // @filename: tsconfig.json |
There was a problem hiding this comment.
You need to include the / in front or else your own directory will show up in the trace.
There was a problem hiding this comment.
good to know, I didn't notice that. fixed.
Travis is down, but all tests pass when I merge master back into the branch, so I'll go ahead and merge. Yui (@yuit) |
Fixes#10460 and fixes#10522
This PR also makes maxNodeModuleJsDepth default to 0 so that incorrect tsconfigs now let the compiler spend less time compiling JS that is found in node_modules (especially since most people will already have the d.ts and want ignore the JS anyway).
jsconfig still defaults to 2.