mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Removed duplicate logic
This commit is contained in:
parent
97025d026d
commit
21bf801c6c
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user