Skip to content

Commit af90030

Browse files
Check for called function exports
1 parent bb49b4a commit af90030

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/common/getExportedName.js

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ function getNodeName(node) {
66
if (node.id && node.id.type === "Identifier") {
77
return node.id.name;
88
}
9+
10+
if (node.type === "CallExpression" && node.callee.type === "Identifier") {
11+
return node.callee.name;
12+
}
913
}
1014

1115
module.exports = function getExportedName(programNode) {

0 commit comments

Comments
 (0)