@marko/runtime-tags 0.3.48 → 0.3.49
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/debug/dom.js +5 -1
- package/dist/debug/dom.mjs +5 -1
- package/dist/dom.js +5 -1
- package/dist/dom.mjs +5 -1
- package/dist/translator/index.js +5 -5
- package/package.json +1 -1
package/dist/debug/dom.js
CHANGED
|
@@ -1457,7 +1457,11 @@ function createContent(id, template, rawWalks, setup, getArgs, dynamicScopesAcce
|
|
|
1457
1457
|
))(branch, walks);
|
|
1458
1458
|
setup && queueRender(branch, setup, -1);
|
|
1459
1459
|
} : (branch) => {
|
|
1460
|
-
|
|
1460
|
+
walk(
|
|
1461
|
+
branch.___startNode = branch.___endNode = new Text(),
|
|
1462
|
+
walks,
|
|
1463
|
+
branch
|
|
1464
|
+
);
|
|
1461
1465
|
setup && queueRender(branch, setup, -1);
|
|
1462
1466
|
};
|
|
1463
1467
|
return (owner) => {
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -1372,7 +1372,11 @@ function createContent(id, template, rawWalks, setup, getArgs, dynamicScopesAcce
|
|
|
1372
1372
|
))(branch, walks);
|
|
1373
1373
|
setup && queueRender(branch, setup, -1);
|
|
1374
1374
|
} : (branch) => {
|
|
1375
|
-
|
|
1375
|
+
walk(
|
|
1376
|
+
branch.___startNode = branch.___endNode = new Text(),
|
|
1377
|
+
walks,
|
|
1378
|
+
branch
|
|
1379
|
+
);
|
|
1376
1380
|
setup && queueRender(branch, setup, -1);
|
|
1377
1381
|
};
|
|
1378
1382
|
return (owner) => {
|
package/dist/dom.js
CHANGED
|
@@ -978,7 +978,11 @@ function createContent(id, template, rawWalks, setup, getArgs, dynamicScopesAcce
|
|
|
978
978
|
ns
|
|
979
979
|
))(branch, walks), setup && queueRender(branch, setup, -1);
|
|
980
980
|
} : (branch) => {
|
|
981
|
-
|
|
981
|
+
walk(
|
|
982
|
+
branch.a = branch.b = new Text(),
|
|
983
|
+
walks,
|
|
984
|
+
branch
|
|
985
|
+
), setup && queueRender(branch, setup, -1);
|
|
982
986
|
};
|
|
983
987
|
return (owner) => ({
|
|
984
988
|
d: id,
|
package/dist/dom.mjs
CHANGED
|
@@ -896,7 +896,11 @@ function createContent(id, template, rawWalks, setup, getArgs, dynamicScopesAcce
|
|
|
896
896
|
ns
|
|
897
897
|
))(branch, walks), setup && queueRender(branch, setup, -1);
|
|
898
898
|
} : (branch) => {
|
|
899
|
-
|
|
899
|
+
walk(
|
|
900
|
+
branch.a = branch.b = new Text(),
|
|
901
|
+
walks,
|
|
902
|
+
branch
|
|
903
|
+
), setup && queueRender(branch, setup, -1);
|
|
900
904
|
};
|
|
901
905
|
return (owner) => ({
|
|
902
906
|
d: id,
|
package/dist/translator/index.js
CHANGED
|
@@ -5446,7 +5446,7 @@ var for_default = {
|
|
|
5446
5446
|
const hasHoists = bodySection.hoisted || bodySection.isHoistThrough;
|
|
5447
5447
|
const singleNodeOptimization = bodySection.content === null || bodySection.content.singleChild && bodySection.content.startType !== 4 /* Text */;
|
|
5448
5448
|
let keyExpression;
|
|
5449
|
-
if (onlyChildInParentOptimization) {
|
|
5449
|
+
if (isStateful && onlyChildInParentOptimization) {
|
|
5450
5450
|
getParentTag(tag).node.extra[kSerializeMarker] = false;
|
|
5451
5451
|
}
|
|
5452
5452
|
if (isStateful || hasStatefulClosures || hasHoists) {
|
|
@@ -5549,9 +5549,9 @@ var for_default = {
|
|
|
5549
5549
|
getScopeIdIdentifier(tagSection),
|
|
5550
5550
|
getScopeAccessorLiteral(nodeRef2)
|
|
5551
5551
|
);
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5552
|
+
if (onlyChildInParentOptimization) {
|
|
5553
|
+
forTagArgs.push(import_compiler31.types.numericLiteral(1));
|
|
5554
|
+
}
|
|
5555
5555
|
}
|
|
5556
5556
|
statements.push(
|
|
5557
5557
|
import_compiler31.types.expressionStatement(callRuntime(forTagHTMLRuntime, ...forTagArgs))
|
|
@@ -7356,7 +7356,7 @@ var IfTag = {
|
|
|
7356
7356
|
const ifScopeIdIdentifier = rootTag.scope.generateUidIdentifier("ifScopeId");
|
|
7357
7357
|
const ifBranchIdentifier = rootTag.scope.generateUidIdentifier("ifBranch");
|
|
7358
7358
|
let statement;
|
|
7359
|
-
if (onlyChildInParentOptimization) {
|
|
7359
|
+
if (isStateful && onlyChildInParentOptimization) {
|
|
7360
7360
|
getParentTag(rootTag).node.extra[kSerializeMarker] = false;
|
|
7361
7361
|
}
|
|
7362
7362
|
for (let i = branches.length; i--; ) {
|