Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed duplicate logic
  • Loading branch information
billti committed Jul 11, 2016
commit 21bf801c6cd98063ebcbd7439a49c1152717188f
7 changes: 0 additions & 7 deletions src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2091,13 +2091,6 @@ namespace ts {
currentNodeModulesDepth++;
}

if (currentNodeModulesDepth > 0) {
// If its already present with false, its a root file also. Don't override this.
if (!hasProperty(sourceFilesFoundSearchingNodeModules, resolvedPath)) {
sourceFilesFoundSearchingNodeModules[resolvedPath] = true;
}
}

const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModulesJsDepth;
const shouldAddFile = resolution && !options.noResolve && i < file.imports.length && !elideImport;

Expand Down