diff --git a/packages/babel-plugin-transform-vue-jsx/src/index.js b/packages/babel-plugin-transform-vue-jsx/src/index.js index e36143a..2ca7568 100644 --- a/packages/babel-plugin-transform-vue-jsx/src/index.js +++ b/packages/babel-plugin-transform-vue-jsx/src/index.js @@ -173,6 +173,7 @@ const parseAttributeJSXAttribute = (t, path, attributes, tagName, elementType) = if (!valuePath.node) { value = t.booleanLiteral(true) } else if (t.isStringLiteral(valuePath)) { + valuePath.node.value = valuePath.node.value.replace(/\n\s+/g, ' ') value = valuePath.node } else { /* istanbul ignore else */