From c1216dea1a504da7b89b5221b925abcd1702d7e4 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Fri, 8 Nov 2024 17:06:44 +0000 Subject: [PATCH] Update LKG --- lib/_tsc.js | 2 +- lib/typescript.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_tsc.js b/lib/_tsc.js index b1286228d17f4..d06c7ff6caf0c 100644 --- a/lib/_tsc.js +++ b/lib/_tsc.js @@ -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) { diff --git a/lib/typescript.js b/lib/typescript.js index 1ca07e0bd08f9..366e30eeb7daa 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -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) {