We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97025d0 commit 21bf801Copy full SHA for 21bf801
src/compiler/program.ts
@@ -2091,13 +2091,6 @@ namespace ts {
2091
currentNodeModulesDepth++;
2092
}
2093
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
-
2101
const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModulesJsDepth;
2102
const shouldAddFile = resolution && !options.noResolve && i < file.imports.length && !elideImport;
2103
0 commit comments