We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e83ff9 commit db82c3fCopy full SHA for db82c3f
src/index.js
@@ -71,7 +71,11 @@ class ExportsFinder {
71
72
findExports(path, property = 'expression') {
73
// Not `exports.anything`, skip
74
- if (!path.get(`${property}.left`).node || !path.get(`${property}.left.object`).node) {
+ if (
75
+ !path.get(`${property}`).node ||
76
+ !path.get(`${property}.left`).node ||
77
+ !path.get(`${property}.left.object`).node
78
+ ) {
79
return
80
}
81
0 commit comments