Skip to content

Commit

Permalink
fix: directive with single param did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 committed Jul 15, 2020
1 parent 5c2ff2d commit 9f13385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-plugin-jsx/src/parseDirectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9f13385

Please sign in to comment.