Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
fix(ts): filter exports without a moduleSpecifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyclarkson committed Feb 7, 2018
1 parent a7f96fc commit 5de60e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ts/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default class File extends Base<Import, Export> {
const { statements } = await this.ast;
yield* statements
.filter(({kind}) => kind === SyntaxKind.ExportDeclaration)
.filter(n => (n as ExportDeclaration).moduleSpecifier)
.map(n => new Export({file: this, declaration: n as ExportDeclaration}));
}

Expand Down

0 comments on commit 5de60e8

Please sign in to comment.