mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Fix export.default assignment for export default class/function
This commit is contained in:
@@ -2440,11 +2440,11 @@ module ts {
|
||||
if (node.flags & NodeFlags.Export) {
|
||||
writeLine();
|
||||
emitStart(node);
|
||||
if (node.name) {
|
||||
emitModuleMemberName(node);
|
||||
if (node.flags & NodeFlags.Default) {
|
||||
write("exports.default");
|
||||
}
|
||||
else {
|
||||
write("exports.default");
|
||||
emitModuleMemberName(node);
|
||||
}
|
||||
write(" = ");
|
||||
emitDeclarationName(node);
|
||||
|
||||
Reference in New Issue
Block a user