1
1
import { isBuiltin } from 'node:module' ;
2
2
import ts from 'typescript' ;
3
- import { ALIAS_TAG , ANONYMOUS , DEFAULT_EXTENSIONS , IMPORT_STAR , PROTOCOL_VIRTUAL } from '../constants.js' ;
3
+ import { ALIAS_TAG , ANONYMOUS , IMPORT_STAR , PROTOCOL_VIRTUAL } from '../constants.js' ;
4
4
import type { GetImportsAndExportsOptions } from '../types/config.js' ;
5
5
import type { ExportMap , ExportMember , ImportDetails , ImportMap , UnresolvedImport } from '../types/dependency-graph.js' ;
6
6
import type { ExportNode , ExportNodeMember } from '../types/exports.js' ;
@@ -9,7 +9,7 @@ import type { IssueSymbol } from '../types/issues.js';
9
9
import { timerify } from '../util/Performance.js' ;
10
10
import { addNsValue , addValue , createImports } from '../util/dependency-graph.js' ;
11
11
import { getPackageNameFromFilePath , isStartsLikePackageName , sanitizeSpecifier } from '../util/modules.js' ;
12
- import { extname , isInNodeModules } from '../util/path.js' ;
12
+ import { isInNodeModules } from '../util/path.js' ;
13
13
import { shouldIgnore } from '../util/tag.js' ;
14
14
import type { BoundSourceFile } from './SourceFile.js' ;
15
15
import {
@@ -155,9 +155,7 @@ const getImportsAndExports = (
155
155
addValue ( imports . imported , identifier , sourceFile . fileName ) ;
156
156
}
157
157
158
- if ( symbol && DEFAULT_EXTENSIONS . includes ( extname ( sourceFile . fileName ) ) ) {
159
- importedInternalSymbols . set ( symbol , filePath ) ;
160
- }
158
+ if ( symbol ) importedInternalSymbols . set ( symbol , filePath ) ;
161
159
}
162
160
} ;
163
161
0 commit comments