diff --git a/source/parser.ts b/source/parser.ts index a0d9aad..5ca89a4 100644 --- a/source/parser.ts +++ b/source/parser.ts @@ -457,6 +457,11 @@ class TS2ASParser //safe to skip declare keyword return; } + if(node.kind === ts.SyntaxKind.ExportKeyword) + { + //safe to skip export keyword + return; + } this.readPackageLevelDefinitions(node); }); this._currentModuleNeedsRequire = false; @@ -662,6 +667,11 @@ class TS2ASParser //we already took care of the declare keyword return; } + if(node.kind === ts.SyntaxKind.ExportKeyword) + { + //we already took care of the export keyword + return; + } this.populatePackageLevelDefinitions(node); }); this._moduleStack.pop();