babel-plugin-jsx-dom-expressions 0.37.0-beta.3 → 0.37.2
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 +5 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1370,7 +1370,10 @@ function transformAttributes$2(path, results) {
|
|
|
1370
1370
|
} else {
|
|
1371
1371
|
!isSVG && (key = key.toLowerCase());
|
|
1372
1372
|
results.template += `${needsSpacing ? ' ' : ''}${key}`;
|
|
1373
|
-
if (!value)
|
|
1373
|
+
if (!value) {
|
|
1374
|
+
needsSpacing = true;
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1374
1377
|
|
|
1375
1378
|
let text = value.value;
|
|
1376
1379
|
let needsQuoting = false;
|
|
@@ -1383,6 +1386,7 @@ function transformAttributes$2(path, results) {
|
|
|
1383
1386
|
}
|
|
1384
1387
|
|
|
1385
1388
|
if (!text.length) {
|
|
1389
|
+
needsSpacing = false;
|
|
1386
1390
|
results.template += `=""`;
|
|
1387
1391
|
return;
|
|
1388
1392
|
}
|
|
@@ -1407,7 +1411,6 @@ function transformAttributes$2(path, results) {
|
|
|
1407
1411
|
}
|
|
1408
1412
|
|
|
1409
1413
|
if (needsQuoting) {
|
|
1410
|
-
|
|
1411
1414
|
needsSpacing = false;
|
|
1412
1415
|
results.template += `="${escapeBackticks(escapeHTML(text, true))}"`;
|
|
1413
1416
|
} else {
|
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.2",
|
|
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": "6f5b3cb774365b9ef4334d2d1c2ff5d6ac34f03d"
|
|
35
35
|
}
|