We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d01d5b1 commit 8ff2c1aCopy full SHA for 8ff2c1a
1 file changed
src/compiler/program.ts
@@ -2031,7 +2031,7 @@ namespace ts {
2031
// - noResolve is falsy
2032
// - module name comes from the list of imports
2033
// - it's not a top level JavaScript module that exceeded the search max
2034
- let isJsFileUnderNodeModules = resolution && resolution.isExternalLibraryImport &&
+ const isJsFileUnderNodeModules = resolution && resolution.isExternalLibraryImport &&
2035
hasJavaScriptFileExtension(resolution.resolvedFileName);
2036
if (isJsFileUnderNodeModules) {
2037
currentNodeModulesJsDepth++;
0 commit comments