Skip to content

Commit 21bf801

Browse files
committed
Removed duplicate logic
1 parent 97025d0 commit 21bf801

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/compiler/program.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,13 +2091,6 @@ namespace ts {
20912091
currentNodeModulesDepth++;
20922092
}
20932093

2094-
if (currentNodeModulesDepth > 0) {
2095-
// If its already present with false, its a root file also. Don't override this.
2096-
if (!hasProperty(sourceFilesFoundSearchingNodeModules, resolvedPath)) {
2097-
sourceFilesFoundSearchingNodeModules[resolvedPath] = true;
2098-
}
2099-
}
2100-
21012094
const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModulesJsDepth;
21022095
const shouldAddFile = resolution && !options.noResolve && i < file.imports.length && !elideImport;
21032096

0 commit comments

Comments
 (0)