Skip to content

Commit

Permalink
fix: babel variants for react compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Jan 28, 2025
1 parent 9dac9d5 commit 7650bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/variants.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function extractVariants(t, path, state) {
return (
t.isIdentifier(variant.expression.callee.object, { name: calleeName }) &&
t.isIdentifier(variant.expression.callee.property, { name: 'useVariants' }) &&
t.isObjectExpression(variant.expression.arguments[0])
variant.expression.arguments.length === 1
)
})

Expand Down

0 comments on commit 7650bd5

Please sign in to comment.