mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-07-03 02:23:25 +08:00
fix: directive with single param did not work
This commit is contained in:
@ -79,7 +79,7 @@ const parseDirectives = (args: {
|
||||
arg,
|
||||
directive: hasDirective ? [
|
||||
resolveDirective(path, state, tag, directiveName),
|
||||
val as t.Identifier,
|
||||
val || value,
|
||||
!!modifiersSet.size && t.unaryExpression('void', t.numericLiteral(0), true),
|
||||
!!modifiersSet.size && t.objectExpression(
|
||||
[...modifiersSet].map(
|
||||
|
Reference in New Issue
Block a user