Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Nov 8, 2024
1 parent 3ee2b95 commit c1216de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/_tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15067,7 +15067,7 @@ function tryGetModuleSpecifierFromDeclaration(node) {
}
}
function shouldRewriteModuleSpecifier(specifier, compilerOptions) {
return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier);
return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier) && hasTSFileExtension(specifier);
}
function getExternalModuleName(node) {
switch (node.kind) {
Expand Down
2 changes: 1 addition & 1 deletion lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -18774,7 +18774,7 @@ function tryGetImportFromModuleSpecifier(node) {
}
}
function shouldRewriteModuleSpecifier(specifier, compilerOptions) {
return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier);
return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier) && hasTSFileExtension(specifier);
}
function getExternalModuleName(node) {
switch (node.kind) {
Expand Down

0 comments on commit c1216de

Please sign in to comment.