From e41f1ae04d69f1dadf02c40c56d378098865f2ff Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Tue, 17 Nov 2015 13:03:15 -0800 Subject: [PATCH] only check against default flag --- src/compiler/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 4bddaa221e8..1cd017cbf2b 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -5583,7 +5583,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } // If this is an exported class, but not on the top level (i.e. on an internal // module), export it - if (node.parent.kind === SyntaxKind.SourceFile && (node.flags & NodeFlags.Default)) { + if (node.flags & NodeFlags.Default) { // if this is a top level default export of decorated class, write the export after the declaration. writeLine(); if (thisNodeIsDecorated && modulekind === ModuleKind.ES6) {