Skip to content

Commit b5941d8

Browse files
committed
Fixed module statement not adding module table
1 parent bbaf3ae commit b5941d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TSHelper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ 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
3637
|| statement.kind === ts.SyntaxKind.ExportAssignment
3738
|| statement.kind === ts.SyntaxKind.ExportDeclaration);
3839
}

0 commit comments

Comments
 (0)