@vue-jsx-vapor/compiler 0.2.0 → 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 +7 -3
- package/dist/index.js +7 -3
- package/package.json +4 -4
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 (!(
|
713
|
-
context.block.returns.push(
|
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 (!(
|
713
|
-
context.block.returns.push(
|
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.
|
3
|
+
"version": "0.2.2",
|
4
4
|
"description": "Vue JSX Vapor Compiler",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
@@ -49,9 +49,9 @@
|
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
51
|
"@babel/types": "^7.26.7",
|
52
|
-
"@vue/compiler-dom": "https://pkg.pr.new/@vue/compiler-dom@
|
53
|
-
"@vue/compiler-vapor": "https://pkg.pr.new/@vue/compiler-vapor@
|
54
|
-
"@vue/shared": "https://pkg.pr.new/@vue/shared@
|
52
|
+
"@vue/compiler-dom": "https://pkg.pr.new/@vue/compiler-dom@dc910ac",
|
53
|
+
"@vue/compiler-vapor": "https://pkg.pr.new/@vue/compiler-vapor@1e41c1d",
|
54
|
+
"@vue/shared": "https://pkg.pr.new/@vue/shared@dc910ac"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
57
57
|
"@babel/parser": "^7.26.7"
|