mini-jsx-test-pb 0.0.6 → 0.0.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.
@@ -33,21 +33,17 @@ function effect(fn) {
33
33
 
34
34
  // src/mount.ts
35
35
  function mountChild(parent, child) {
36
- if (child == null || child === false || child === true) {
37
- return;
38
- }
36
+ if (child == null || child === true || child === false) return;
39
37
  if (Array.isArray(child)) {
40
- for (const c of child) {
41
- mountChild(parent, c);
42
- }
38
+ for (const c of child) mountChild(parent, c);
43
39
  return;
44
40
  }
45
41
  if (typeof child === "function") {
46
42
  const text = document.createTextNode("");
47
43
  parent.appendChild(text);
48
44
  effect(() => {
49
- const value = child();
50
- text.nodeValue = value == null ? "" : String(value);
45
+ const v = child();
46
+ text.nodeValue = v == null ? "" : String(v);
51
47
  });
52
48
  return;
53
49
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  State,
3
3
  effect,
4
4
  h
5
- } from "./chunk-FLLMW3OM.js";
5
+ } from "./chunk-ITJEC2RM.js";
6
6
  export {
7
7
  State,
8
8
  effect,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  h
3
- } from "./chunk-FLLMW3OM.js";
3
+ } from "./chunk-ITJEC2RM.js";
4
4
  export {
5
5
  h as jsxDEV
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  h
3
- } from "./chunk-FLLMW3OM.js";
3
+ } from "./chunk-ITJEC2RM.js";
4
4
  export {
5
5
  h as jsx,
6
6
  h as jsxDEV,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mini-jsx-test-pb",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",