babel-plugin-jsx-dom-expressions 0.35.4 → 0.35.6

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
@@ -383,7 +383,7 @@ function checkLength(children) {
383
383
  children.forEach(path => {
384
384
  const child = path.node;
385
385
  !(t__namespace.isJSXExpressionContainer(child) && t__namespace.isJSXEmptyExpression(child.expression)) &&
386
- (!t__namespace.isJSXText(child) || !/^\s*$/.test(child.extra.raw)) &&
386
+ (!t__namespace.isJSXText(child) || !/^\s*$/.test(child.extra.raw) || /^ *$/.test(child.extra.raw)) &&
387
387
  i++;
388
388
  });
389
389
  return i > 1;
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.35.4",
4
+ "version": "0.35.6",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,5 +27,5 @@
27
27
  "peerDependencies": {
28
28
  "@babel/core": "^7.0.0"
29
29
  },
30
- "gitHead": "dcc322b7f4bf7d651196b99504b2d17bb80f1973"
30
+ "gitHead": "0525efe1ea9d3e43336dea787de0b84e6d42ed72"
31
31
  }