Use minimal endings when generating declarations for js

This commit is contained in:
Wesley Wigham
2020-10-12 16:01:32 -07:00
parent 83d02a5f05
commit 1cdb621257
5 changed files with 89 additions and 1 deletions

View File

@@ -5479,7 +5479,7 @@ namespace ts {
specifierCompilerOptions,
contextFile,
moduleResolverHost,
{ importModuleSpecifierPreference: isBundle ? "non-relative" : "relative" },
{ importModuleSpecifierPreference: isBundle ? "non-relative" : "relative", importModuleSpecifierEnding: isBundle ? "minimal" : undefined },
));
links.specifierCache ??= new Map();
links.specifierCache.set(contextFile.path, specifier);