Commit c1216de 1 parent 3ee2b95 commit c1216de Copy full SHA for c1216de
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15067,7 +15067,7 @@ function tryGetModuleSpecifierFromDeclaration(node) {
15067
15067
}
15068
15068
}
15069
15069
function shouldRewriteModuleSpecifier(specifier, compilerOptions) {
15070
- return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier);
15070
+ return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier) && hasTSFileExtension(specifier) ;
15071
15071
}
15072
15072
function getExternalModuleName(node) {
15073
15073
switch (node.kind) {
Original file line number Diff line number Diff line change @@ -18774,7 +18774,7 @@ function tryGetImportFromModuleSpecifier(node) {
18774
18774
}
18775
18775
}
18776
18776
function shouldRewriteModuleSpecifier(specifier, compilerOptions) {
18777
- return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier);
18777
+ return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier) && hasTSFileExtension(specifier) ;
18778
18778
}
18779
18779
function getExternalModuleName(node) {
18780
18780
switch (node.kind) {
You can’t perform that action at this time.
0 commit comments