Skip to content

Commit db82c3f

Browse files
committed
fix: closes #60, #63
1 parent 8e83ff9 commit db82c3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ class ExportsFinder {
7171

7272
findExports(path, property = 'expression') {
7373
// Not `exports.anything`, skip
74-
if (!path.get(`${property}.left`).node || !path.get(`${property}.left.object`).node) {
74+
if (
75+
!path.get(`${property}`).node ||
76+
!path.get(`${property}.left`).node ||
77+
!path.get(`${property}.left.object`).node
78+
) {
7579
return
7680
}
7781

0 commit comments

Comments
 (0)