Removed duplicate logic
This commit is contained in:
parent
97025d026d
commit
21bf801c6c
1 changed files with 0 additions and 7 deletions
|
@ -2091,13 +2091,6 @@ namespace ts {
|
||||||
currentNodeModulesDepth++;
|
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 elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModulesJsDepth;
|
||||||
const shouldAddFile = resolution && !options.noResolve && i < file.imports.length && !elideImport;
|
const shouldAddFile = resolution && !options.noResolve && i < file.imports.length && !elideImport;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue