diff --git a/rollup-plugins/template-literal-indent-fix.js b/rollup-plugins/template-literal-indent-fix.js index 8654c86..70b0f51 100644 --- a/rollup-plugins/template-literal-indent-fix.js +++ b/rollup-plugins/template-literal-indent-fix.js @@ -53,6 +53,8 @@ function createNewNode(originalNode) { return node.value.raw; case 'Identifier': return '${' + node.name + '}'; + case 'LogicalExpression': + return '${' + node.left.name + node.operator + node.right.raw + '}'; default: return node.value; }