mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user