Skip to content
Permalink
Browse files

fix(parse): Possible fix

  • Loading branch information...
iamthes committed Dec 12, 2017
1 parent fe061b6 commit 224a4f38d7868ac043be03c22913032ce985a034
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/parse.ts
@@ -117,8 +117,9 @@ export function parse(sourceText: string, options: ParseOptions = {}): Entry[] {
} break;
case ts.SyntaxKind.ExportAssignment: {
const expr = (node as any).expression && (node as any).expression.text;
if (expr && moduleBlockDeclarations[expr]) {
moduleBlockDeclarations[expr].forEach(entry => {
const declarations = expr && moduleBlockDeclarations && moduleBlockDeclarations[expr];
if (Array.isArray(declarations)) {
declarations.forEach(entry => {
entry.cjs = true;
entry.ts = true;
entrySet.push(entry);

0 comments on commit 224a4f3

Please sign in to comment.
You can’t perform that action at this time.