properly handle shorthand JSX attributes in optimisation.react.inlineElements transformer - fixes #1309
This commit is contained in:
@@ -57,7 +57,7 @@ export function JSXElement(node, parent, scope, file) {
|
||||
if (isJSXAttributeOfName(attr, "key")) {
|
||||
key = attr.value;
|
||||
} else {
|
||||
pushProp(props.properties, attr.name, attr.value);
|
||||
pushProp(props.properties, attr.name, attr.value || t.identifier("true"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user