Skip to content

Commit

Permalink
fix: closes #60, #63
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Aug 14, 2018
1 parent 8e83ff9 commit db82c3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Expand Up @@ -71,7 +71,11 @@ class ExportsFinder {

findExports(path, property = 'expression') {
// Not `exports.anything`, skip
if (!path.get(`${property}.left`).node || !path.get(`${property}.left.object`).node) {
if (
!path.get(`${property}`).node ||
!path.get(`${property}.left`).node ||
!path.get(`${property}.left.object`).node
) {
return
}

Expand Down

0 comments on commit db82c3f

Please sign in to comment.