babel-plugin-jsx-dom-expressions 0.37.7 → 0.37.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -2378,7 +2378,7 @@ function transformAttributes$1(path, results, info) {
|
|
|
2378
2378
|
if (t__namespace.isJSXExpressionContainer(value)) value = value.expression;
|
|
2379
2379
|
key = toAttribute(key, isSVG);
|
|
2380
2380
|
const isBoolean = BooleanAttributes.has(key);
|
|
2381
|
-
if (isBoolean && value.value !== "" && !value.value) return;
|
|
2381
|
+
if (isBoolean && value && value.value !== "" && !value.value) return;
|
|
2382
2382
|
appendToTemplate(results.template, ` ${key}`);
|
|
2383
2383
|
if (!value) return;
|
|
2384
2384
|
let text = isBoolean ? "" : value.value;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-jsx-dom-expressions",
|
|
3
3
|
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
|
|
4
|
-
"version": "0.37.
|
|
4
|
+
"version": "0.37.8",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.20.12"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "51b297d6ed45d1a3dbbe7a45f2f58b8b524427ab"
|
|
35
35
|
}
|