Skip to content

Commit 7ce5f43

Browse files
committed
fix: null check
1 parent f957109 commit 7ce5f43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ function isFunctionIsland(functionAST) {
409409
},
410410
JSXAttribute(node) {
411411
if (
412+
node.value &&
412413
node.value.type === 'JSXExpressionContainer' &&
413414
(node.value.expression.type === 'ArrowFunctionExpression' ||
414415
(node.value.expression.type == 'Identifier' &&

0 commit comments

Comments
 (0)