babel-plugin-transform-jsx-to-html
Advanced tools
Comparing version 0.2.1-beta.7 to 0.2.1-beta.8
@@ -32,3 +32,3 @@ const esutils = require('esutils'); | ||
let html = `<${ tagName}`; | ||
let html = `<${tagName}`; | ||
@@ -72,3 +72,3 @@ let attrs = openingPath.node.attributes; | ||
if (path.node.closingElement || innerHTML) { | ||
pushResult(t.stringLiteral(`</${ tagName }>`), result); | ||
pushResult(t.stringLiteral(`</${tagName}>`), result); | ||
} | ||
@@ -202,3 +202,3 @@ | ||
const value = prop.value.value.replace(/\n\s+/g, ' '); | ||
staticAttrs = `${staticAttrs } ${ name }="${ value }"`; | ||
staticAttrs = `${staticAttrs} ${name}="${value}"`; | ||
} else { | ||
@@ -266,3 +266,3 @@ _props.push(convertAttribute(prop)); | ||
node.name = t.stringLiteral( | ||
`${node.name.namespace.name }:${ node.name.name.name}`, | ||
`${node.name.namespace.name}:${node.name.name.name}`, | ||
); | ||
@@ -269,0 +269,0 @@ } else if (esutils.keyword.isIdentifierNameES6(node.name.name)) { |
{ | ||
"name": "babel-plugin-transform-jsx-to-html", | ||
"version": "0.2.1-beta.7", | ||
"version": "0.2.1-beta.8", | ||
"description": "Transform JSX to HTML.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
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
14218