classnames.macro
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -93,3 +93,3 @@ "use strict"; | ||
if (babel.types.isMemberExpression(node) || babel.types.isIdentifier(node)) { | ||
return babel.types.binaryExpression("+", babel.types.stringLiteral(" "), babel.types.logicalExpression("||", node, babel.types.stringLiteral(""))); | ||
return babel.types.conditionalExpression(node, babel.types.binaryExpression("+", babel.types.stringLiteral(" "), node), babel.types.stringLiteral("")); | ||
} // TODO: This probably does not belong here | ||
@@ -96,0 +96,0 @@ |
{ | ||
"name": "classnames.macro", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Babel Macro for conditionally joining CSS class names together", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
9504