@vue/babel-plugin-jsx
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -125,4 +125,7 @@ "use strict"; | ||
var transformJSXText = (path) => { | ||
const { node } = path; | ||
const lines = node.value.split(/\r\n|\n|\r/); | ||
const str = transformText(path.node.value); | ||
return str !== "" ? t.stringLiteral(str) : null; | ||
}; | ||
var transformText = (text) => { | ||
const lines = text.split(/\r\n|\n|\r/); | ||
let lastNonEmptyLine = 0; | ||
@@ -154,3 +157,3 @@ for (let i = 0; i < lines.length; i++) { | ||
} | ||
return str !== "" ? t.stringLiteral(str) : null; | ||
return str; | ||
}; | ||
@@ -407,3 +410,3 @@ var transformJSXExpressionContainer = (path) => path.get("expression").node; | ||
if (valuePath.isStringLiteral()) { | ||
return transformJSXText(valuePath); | ||
return t3.stringLiteral(transformText(valuePath.node.value)); | ||
} | ||
@@ -410,0 +413,0 @@ if (valuePath.isJSXExpressionContainer()) { |
{ | ||
"name": "@vue/babel-plugin-jsx", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Babel plugin for Vue 3 JSX", | ||
@@ -30,3 +30,3 @@ "author": "Amour1688 <lcz_1996@foxmail.com>", | ||
"svg-tags": "^1.0.0", | ||
"@vue/babel-helper-vue-transform-on": "^1.1.4" | ||
"@vue/babel-helper-vue-transform-on": "^1.1.5" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79667
2034