babel-plugin-jsx-dom-expressions 0.38.0 → 0.38.1

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 +3 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1521,6 +1521,7 @@ function transformChildren$2(path, results, config) {
1521
1521
  let tempPath = results.id && results.id.name,
1522
1522
  tagName = getTagName(path.node),
1523
1523
  nextPlaceholder,
1524
+ childPostExprs = [],
1524
1525
  i = 0;
1525
1526
  const filteredChildren = filterChildren(path.get("children")),
1526
1527
  lastElement = findLastElement(filteredChildren, config.hydratable),
@@ -1596,7 +1597,7 @@ function transformChildren$2(path, results, config) {
1596
1597
  results.declarations.push(...child.declarations);
1597
1598
  results.exprs.push(...child.exprs);
1598
1599
  results.dynamics.push(...child.dynamics);
1599
- results.postExprs.push(...child.postExprs);
1600
+ childPostExprs.push(...child.postExprs);
1600
1601
  results.hasHydratableEvent = results.hasHydratableEvent || child.hasHydratableEvent;
1601
1602
  results.hasCustomElement = results.hasCustomElement || child.hasCustomElement;
1602
1603
  tempPath = child.id.name;
@@ -1644,6 +1645,7 @@ function transformChildren$2(path, results, config) {
1644
1645
  }
1645
1646
  } else nextPlaceholder = null;
1646
1647
  });
1648
+ results.postExprs.unshift(...childPostExprs);
1647
1649
  }
1648
1650
 
1649
1651
  function createPlaceholder(path, results, tempPath, i, char) {
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.38.0",
4
+ "version": "0.38.1",
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": "458e00e067c2a842f28a71ce906d8e4ce62214e5"
34
+ "gitHead": "9079131ae370c5e96aa84b4f9f36a6e678a26856"
35
35
  }