Merge pull request #41070 from weswigham/use-minimal-endings-in-bundled-declaration-emit

Use minimal endings when generating declarations for js
This commit is contained in:
Wesley Wigham
2020-10-14 15:29:50 -07:00
committed by GitHub
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);