File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10982,6 +10982,8 @@ module ts {
10982
10982
function getExportNameSubstitution(symbol: Symbol, location: Node): string {
10983
10983
if (isExternalModuleSymbol(symbol.parent)) {
10984
10984
var symbolName = unescapeIdentifier(symbol.name);
10985
+ // If this is es6 or higher, just use the name of the export
10986
+ // no need to qualify it.
10985
10987
if (languageVersion >= ScriptTarget.ES6) {
10986
10988
return symbolName;
10987
10989
}
Original file line number Diff line number Diff line change @@ -4903,6 +4903,7 @@ module ts {
4903
4903
}
4904
4904
4905
4905
write ( "class " ) ;
4906
+ // check if this is an "export default class" as it may not have a name
4906
4907
if ( node . name || ! ( node . flags & NodeFlags . Default ) ) {
4907
4908
emitDeclarationName ( node ) ;
4908
4909
}
You can’t perform that action at this time.
0 commit comments