babel-plugin-jsx-dom-expressions 0.36.6 → 0.36.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 +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -690,7 +690,7 @@ const BlockElements = [
690
690
  "pre",
691
691
  "section",
692
692
  "table",
693
- "ul",
693
+ "ul"
694
694
  ];
695
695
 
696
696
  const alwaysClose = [
@@ -766,7 +766,7 @@ function transformElement$3(path, info) {
766
766
  if (toBeClosed) {
767
767
  results.toBeClosed = new Set(info.toBeClosed || alwaysClose);
768
768
  results.toBeClosed.add(tagName);
769
- if (InlineElements.includes(tagName)) results.toBeClosed.add(...BlockElements);
769
+ if (InlineElements.includes(tagName)) BlockElements.forEach(i => results.toBeClosed.add(i));
770
770
  }
771
771
  transformChildren$2(path, results, config);
772
772
  if (toBeClosed) results.template += `</${tagName}>`;
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.36.6",
4
+ "version": "0.36.7",
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": "35c4a68d712cb008adf5e37bc0fd79d7e941491b"
34
+ "gitHead": "cde236af9c2dfc9ab4642c08decf06fc90172e5f"
35
35
  }