File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ export class TSHelper {
3333 // export statement, we only check for export statements
3434 return sourceFile . statements . some ( statement =>
3535 ( ts . getCombinedModifierFlags ( statement ) & ts . ModifierFlags . Export ) !== 0
36- || statement . kind === ts . SyntaxKind . ModuleDeclaration
3736 || statement . kind === ts . SyntaxKind . ExportAssignment
3837 || statement . kind === ts . SyntaxKind . ExportDeclaration ) ;
3938 }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export abstract class LuaTranspiler {
7171 public makeExport ( name : string | ts . __String , node : ts . Node , dummy ?: boolean ) : string {
7272 let result : string = "" ;
7373 if ( node &&
74- node . modifiers &&
74+ node . modifiers && this . isModule &&
7575 ( ts . getCombinedModifierFlags ( node ) & ts . ModifierFlags . Export )
7676 ) {
7777 if ( dummy ) {
You can’t perform that action at this time.
0 commit comments