Skip to content

Commit edf1178

Browse files
committed
Fix?
1 parent b5941d8 commit edf1178

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/TSHelper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/Transpiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)