babel-plugin-jsx-dom-expressions 0.30.6 → 0.30.7

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 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -447,9 +447,7 @@ function transformCondition(path, inline, deep) {
447
447
  nextPath.node.left = t__namespace.callExpression(id, []);
448
448
  }
449
449
  }
450
- if (dTest) {
451
- if (inline) return t__namespace.arrowFunctionExpression([], expr);
452
-
450
+ if (dTest && !inline) {
453
451
  const statements = [
454
452
  t__namespace.variableDeclaration("const", [
455
453
  t__namespace.variableDeclarator(
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.30.6",
4
+ "version": "0.30.7",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "@babel/types": "^7.11.5",
24
24
  "html-entities": "2.3.2"
25
25
  },
26
- "gitHead": "a2cc48a877bd4edff32f398c6c84d0b7bf6d584e"
26
+ "gitHead": "41e356571808b2c331783a406312a05977ab316c"
27
27
  }