@vue-jsx-vapor/compiler 0.2.1 → 0.2.2

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.
package/dist/index.cjs CHANGED
@@ -545,7 +545,7 @@ function transformComponentElement(tag, propsResult, singleRoot, context) {
545
545
  props: propsResult[0] ? propsResult[1] : [propsResult[1]],
546
546
  asset,
547
547
  root: singleRoot,
548
- slots: context.slots,
548
+ slots: [...context.slots],
549
549
  once: context.inVOnce
550
550
  });
551
551
  context.slots = [];
@@ -706,15 +706,19 @@ var transformChildren = (node, context) => {
706
706
  for (const [i, child] of node.children.entries()) {
707
707
  const childContext = context.create(child, i);
708
708
  transformNode(childContext);
709
+ const childDynamic = childContext.dynamic;
709
710
  if (isFragment) {
710
711
  childContext.reference();
711
712
  childContext.registerTemplate();
712
- if (!(childContext.dynamic.flags & 2 /* NON_TEMPLATE */) || childContext.dynamic.flags & 4 /* INSERT */) {
713
- context.block.returns.push(childContext.dynamic.id);
713
+ if (!(childDynamic.flags & 2 /* NON_TEMPLATE */) || childDynamic.flags & 4 /* INSERT */) {
714
+ context.block.returns.push(childDynamic.id);
714
715
  }
715
716
  } else {
716
717
  context.childrenTemplate.push(childContext.template);
717
718
  }
719
+ if (childDynamic.hasDynamicChild || childDynamic.id !== void 0 || childDynamic.flags & 2 /* NON_TEMPLATE */ || childDynamic.flags & 4 /* INSERT */) {
720
+ context.dynamic.hasDynamicChild = true;
721
+ }
718
722
  context.dynamic.children[i] = childContext.dynamic;
719
723
  }
720
724
  if (!isFragment) {
package/dist/index.js CHANGED
@@ -545,7 +545,7 @@ function transformComponentElement(tag, propsResult, singleRoot, context) {
545
545
  props: propsResult[0] ? propsResult[1] : [propsResult[1]],
546
546
  asset,
547
547
  root: singleRoot,
548
- slots: context.slots,
548
+ slots: [...context.slots],
549
549
  once: context.inVOnce
550
550
  });
551
551
  context.slots = [];
@@ -706,15 +706,19 @@ var transformChildren = (node, context) => {
706
706
  for (const [i, child] of node.children.entries()) {
707
707
  const childContext = context.create(child, i);
708
708
  transformNode(childContext);
709
+ const childDynamic = childContext.dynamic;
709
710
  if (isFragment) {
710
711
  childContext.reference();
711
712
  childContext.registerTemplate();
712
- if (!(childContext.dynamic.flags & 2 /* NON_TEMPLATE */) || childContext.dynamic.flags & 4 /* INSERT */) {
713
- context.block.returns.push(childContext.dynamic.id);
713
+ if (!(childDynamic.flags & 2 /* NON_TEMPLATE */) || childDynamic.flags & 4 /* INSERT */) {
714
+ context.block.returns.push(childDynamic.id);
714
715
  }
715
716
  } else {
716
717
  context.childrenTemplate.push(childContext.template);
717
718
  }
719
+ if (childDynamic.hasDynamicChild || childDynamic.id !== void 0 || childDynamic.flags & 2 /* NON_TEMPLATE */ || childDynamic.flags & 4 /* INSERT */) {
720
+ context.dynamic.hasDynamicChild = true;
721
+ }
718
722
  context.dynamic.children[i] = childContext.dynamic;
719
723
  }
720
724
  if (!isFragment) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-jsx-vapor/compiler",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Vue JSX Vapor Compiler",
5
5
  "type": "module",
6
6
  "keywords": [