We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf666b commit a5417b9Copy full SHA for a5417b9
src/index.js
@@ -5,7 +5,7 @@ export default function ({ types: t }) {
5
visitor: {
6
ArrowFunctionExpression (path, state) {
7
const options = checkValidOptions(state)
8
- if (!path.parent) return
+ if (!path.parent.id || !path.parent.id.name) return
9
const componentName = path.parent.id.name
10
11
const functionBody = path.get('body').get('body')
0 commit comments