babel-plugin-jsx-dom-expressions 0.37.17 → 0.37.18

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -3542,7 +3542,7 @@ function transformNode(path, info = {}) {
3542
3542
  config.wrapConditionals &&
3543
3543
  config.generate !== "ssr" &&
3544
3544
  (t__namespace.isLogicalExpression(node.expression) || t__namespace.isConditionalExpression(node.expression))
3545
- ? transformCondition(path.get("expression"), info.componentChild)
3545
+ ? transformCondition(path.get("expression"), info.componentChild || info.fragmentChild)
3546
3546
  : !info.componentChild &&
3547
3547
  (config.generate !== "ssr" || info.fragmentChild) &&
3548
3548
  t__namespace.isCallExpression(node.expression) &&
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.17",
4
+ "version": "0.37.18",
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": "099d1eaa9d59a794a1c8cbe4e6a03d2e847c1081"
34
+ "gitHead": "0a64479959852532d861f70fe6da13ee3d084530"
35
35
  }