Skip to content

Commit 816b92d

Browse files
committed
chore: update snapshots
1 parent 35313a2 commit 816b92d

File tree

172 files changed

+684
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+684
-627
lines changed

packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/dom.expected/tags/list/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const _dynamicTag$for_content = /* @__PURE__ */_$.dynamicTag("#text/0");
66
const _item_content$for_content = /* @__PURE__ */_$.value("item_content", (_scope, item_content) => _dynamicTag$for_content(_scope, item_content));
77
const _item$for_content = /* @__PURE__ */_$.value("item", (_scope, item) => _item_content$for_content(_scope, item?.content));
88
const _params_2$for_content = /* @__PURE__ */_$.value("_params_2", (_scope, _params_2) => _item$for_content(_scope, _params_2[0]));
9-
const _for_content = /* @__PURE__ */_$.createRenderer("<!><!><!>", /* replace */"D%D", 0, () => _params_2$for_content);
9+
const _for_content = /* @__PURE__ */_$.createRenderer("<!><!><!>", /* replace */"D%D", 0, _params_2$for_content);
1010
const _for = /* @__PURE__ */_$.loopOf("#text/0", _for_content);
1111
export const _input_item_ = /* @__PURE__ */_$.value("input_item", (_scope, input_item) => _for(_scope, [input_item]));
1212
export const _input_ = /* @__PURE__ */_$.value("input", (_scope, input) => _input_item_(_scope, input.item));

packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.expected/template.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@ import { resolveAfter } from "../../utils/resolve";
44
import * as _$ from "@marko/runtime-tags/debug/dom";
55
const _value$await_content3 = /* @__PURE__ */_$.value("value", (_scope, value) => _$.data(_scope["#text/0"], value));
66
const _params_4$await_content = /* @__PURE__ */_$.value("_params_4", (_scope, _params_4) => _value$await_content3(_scope, _params_4[0]));
7-
const _count$await_content3 = _$.registerDynamicClosure("__tests__/template.marko_3_count/subscriber", "count", (_scope, count) => _$.data(_scope["#text/1"], count));
8-
const _await_content3 = /* @__PURE__ */_$.createRenderer("Got: <!> <!>", /* over(1), replace, over(2), replace */"b%c%", 0, () => _params_4$await_content, _scope => _count$await_content3._(_scope));
7+
const _count$await_content3 = /* @__PURE__ */_$.dynamicClosureRead("count", (_scope, count) => _$.data(_scope["#text/1"], count));
8+
const _await_content3 = /* @__PURE__ */_$.createRenderer("Got: <!> <!>", /* over(1), replace, over(2), replace */"b%c%", 0, _params_4$await_content, _scope => _count$await_content3(_scope));
99
const _value$await_content2 = /* @__PURE__ */_$.value("value", (_scope, value) => _$.data(_scope["#text/0"], value));
1010
const _params_3$await_content = /* @__PURE__ */_$.value("_params_3", (_scope, _params_3) => _value$await_content2(_scope, _params_3[0]));
11-
const _count$await_content2 = _$.registerDynamicClosure("__tests__/template.marko_2_count/subscriber", "count", (_scope, count) => _$.data(_scope["#text/1"], count));
12-
const _await_content2 = /* @__PURE__ */_$.createRenderer("Got: <!> <!>", /* over(1), replace, over(2), replace */"b%c%", 0, () => _params_3$await_content, _scope => _count$await_content2._(_scope));
11+
const _count$await_content2 = /* @__PURE__ */_$.dynamicClosureRead("count", (_scope, count) => _$.data(_scope["#text/1"], count));
12+
const _await_content2 = /* @__PURE__ */_$.createRenderer("Got: <!> <!>", /* over(1), replace, over(2), replace */"b%c%", 0, _params_3$await_content, _scope => _count$await_content2(_scope));
1313
const _value$await_content = /* @__PURE__ */_$.value("value", (_scope, value) => _$.data(_scope["#text/0"], value));
1414
const _params_2$await_content = /* @__PURE__ */_$.value("_params_2", (_scope, _params_2) => _value$await_content(_scope, _params_2[0]));
15-
const _count$await_content = _$.registerDynamicClosure("__tests__/template.marko_1_count/subscriber", "count", (_scope, count) => _$.data(_scope["#text/1"], count));
16-
const _await_content = /* @__PURE__ */_$.createRenderer("Got: <!> <!>", /* over(1), replace, over(2), replace */"b%c%", 0, () => _params_2$await_content, _scope => _count$await_content._(_scope));
15+
const _count$await_content = /* @__PURE__ */_$.dynamicClosureRead("count", (_scope, count) => _$.data(_scope["#text/1"], count));
16+
const _await_content = /* @__PURE__ */_$.createRenderer("Got: <!> <!>", /* over(1), replace, over(2), replace */"b%c%", 0, _params_2$await_content, _scope => _count$await_content(_scope));
17+
const _count_closure = /* @__PURE__ */_$.dynamicClosure(_count$await_content, _count$await_content2, _count$await_content3);
1718
const _count_effect = _$.effect("__tests__/template.marko_0_count", (_scope, {
1819
count
1920
}) => _$.on(_scope["#button/0"], "click", function () {
2021
_count(_scope, count + 1), count;
2122
}));
2223
const _count = /* @__PURE__ */_$.state("count/1", (_scope, count) => {
23-
_count$await_content(_scope);
24-
_count$await_content2(_scope);
25-
_count$await_content3(_scope);
24+
_count_closure(_scope);
2625
_count_effect(_scope);
2726
});
2827
export function _setup_(_scope) {

packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.expected/template.js

+15-13
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,41 @@ import { resolveAfter } from "../../utils/resolve";
22
import * as _$ from "@marko/runtime-tags/debug/html";
33
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", input => {
44
const _scope0_id = _$.nextScopeId();
5+
const _count_closures = new Set();
56
const count = 0;
67
_$.write("<div>");
78
_$.fork(Promise.resolve("a"), value => {
89
const _scope1_id = _$.nextScopeId();
910
_$.write(`Got: ${_$.escapeXML(value)} <!>${_$.escapeXML(count)}${_$.markResumeNode(_scope1_id, "#text/1")}`);
10-
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_count/subscriber");
11-
_$.writeScope(_scope1_id, {
12-
_: _$.ensureScopeWithId(_scope0_id)
13-
}, "__tests__/template.marko", "5:4");
11+
_$.writeSubscribe(_count_closures, _$.writeScope(_scope1_id, {
12+
_: _$.ensureScopeWithId(_scope0_id),
13+
"count(": 0
14+
}, "__tests__/template.marko", "5:4"));
1415
_$.resumeClosestBranch(_scope1_id);
1516
});
1617
_$.fork(resolveAfter("b", 2), value => {
1718
const _scope2_id = _$.nextScopeId();
1819
_$.write(`Got: ${_$.escapeXML(value)} <!>${_$.escapeXML(count)}${_$.markResumeNode(_scope2_id, "#text/1")}`);
19-
_$.writeEffect(_scope2_id, "__tests__/template.marko_2_count/subscriber");
20-
_$.writeScope(_scope2_id, {
21-
_: _$.ensureScopeWithId(_scope0_id)
22-
}, "__tests__/template.marko", "9:4");
20+
_$.writeSubscribe(_count_closures, _$.writeScope(_scope2_id, {
21+
_: _$.ensureScopeWithId(_scope0_id),
22+
"count(": 1
23+
}, "__tests__/template.marko", "9:4"));
2324
_$.resumeClosestBranch(_scope2_id);
2425
});
2526
_$.fork(resolveAfter("c", 1), value => {
2627
const _scope3_id = _$.nextScopeId();
2728
_$.write(`Got: ${_$.escapeXML(value)} <!>${_$.escapeXML(count)}${_$.markResumeNode(_scope3_id, "#text/1")}`);
28-
_$.writeEffect(_scope3_id, "__tests__/template.marko_3_count/subscriber");
29-
_$.writeScope(_scope3_id, {
30-
_: _$.ensureScopeWithId(_scope0_id)
31-
}, "__tests__/template.marko", "13:4");
29+
_$.writeSubscribe(_count_closures, _$.writeScope(_scope3_id, {
30+
_: _$.ensureScopeWithId(_scope0_id),
31+
"count(": 2
32+
}, "__tests__/template.marko", "13:4"));
3233
_$.resumeClosestBranch(_scope3_id);
3334
});
3435
_$.write(`<button>Inc</button>${_$.markResumeNode(_scope0_id, "#button/0")}</div>`);
3536
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_count");
3637
_$.writeScope(_scope0_id, {
37-
count
38+
count,
39+
"count!": _count_closures
3840
}, "__tests__/template.marko", 0, {
3941
count: "3:6"
4042
});

packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/ssr.expected.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Write
22
```html
3-
<div>Got: a <!>0<!--M_*2 #text/1--><script>WALKER_RUNTIME("M")("_");M._.r=[_=>(_.b={1:_.a={count:0},2:{_:_.a}}),2,"__tests__/template.marko_1_count/subscriber"];M._.w()</script>
3+
<div>Got: a <!>0<!--M_*2 #text/1--><script>WALKER_RUNTIME("M")("_");M._.r=[_=>(_.b={1:_.a={count:0,"count!":_.c=new Set},2:_.d={_:_.a,"count(":0}},(_.c).add(_.d),_.b)]</script>
44
```
55

66
# Write
77
```html
8-
<script>M._.r.push(_=>(_.c={3:{_:_.a}}))</script>
8+
<script>M._.r.push(_=>(_.e={3:_.f={_:_.a,"count(":2}},(_.c).add(_.f),_.e))</script>
99
```
1010

1111
# Write
1212
```html
13-
Got: b <!>0<!--M_*4 #text/1-->Got: c <!>0<!--M_*3 #text/1--><button>Inc</button><!--M_*1 #button/0--></div><script>M._.r.push(_=>(_.d={4:{_:_.a}}),4,"__tests__/template.marko_2_count/subscriber",3,"__tests__/template.marko_3_count/subscriber",1,"__tests__/template.marko_0_count",0);M._.w()</script>
13+
Got: b <!>0<!--M_*4 #text/1-->Got: c <!>0<!--M_*3 #text/1--><button>Inc</button><!--M_*1 #button/0--></div><script>M._.r.push(_=>(_.g={4:_.h={_:_.a,"count(":1}},(_.c).add(_.h),_.g),1,"__tests__/template.marko_0_count",0);M._.w()</script>
1414
```
1515

1616
# Render End
@@ -24,10 +24,10 @@
2424
0
2525
<!--M_*2 #text/1-->
2626
<script>
27-
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.b={1:_.a={count:0},2:{_:_.a}}),2,"__tests__/template.marko_1_count/subscriber"];M._.w()
27+
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.b={1:_.a={count:0,"count!":_.c=new Set},2:_.d={_:_.a,"count(":0}},(_.c).add(_.d),_.b)]
2828
</script>
2929
<script>
30-
M._.r.push(_=&gt;(_.c={3:{_:_.a}}))
30+
M._.r.push(_=&gt;(_.e={3:_.f={_:_.a,"count(":2}},(_.c).add(_.f),_.e))
3131
</script>
3232
Got: b
3333
<!---->
@@ -43,7 +43,7 @@
4343
<!--M_*1 #button/0-->
4444
</div>
4545
<script>
46-
M._.r.push(_=&gt;(_.d={4:{_:_.a}}),4,"__tests__/template.marko_2_count/subscriber",3,"__tests__/template.marko_3_count/subscriber",1,"__tests__/template.marko_0_count",0);M._.w()
46+
M._.r.push(_=&gt;(_.g={4:_.h={_:_.a,"count(":1}},(_.c).add(_.h),_.g),1,"__tests__/template.marko_0_count",0);M._.w()
4747
</script>
4848
</body>
4949
</html>

packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/.name-cache.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"$_clickCount$myButtonBody": "s",
1010
"$_clickCount": "o",
1111
"$_clickCount$myButton_content": "a",
12-
"$_setup$myButton_content": "m"
12+
"$_setup$myButton_content": "m",
13+
"$_clickCount_closure": "c"
1314
}
1415
}
1516
}

packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.expected/template.hydrate.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
// size: 258 (min) 177 (brotli)
1+
// size: 271 (min) 164 (brotli)
22
const _onClick__effect = _$.effect("a0", (_scope, { 4: onClick }) =>
33
_$.on(_scope[0], "click", onClick),
44
),
55
_onClick_ = _$.value(4, (_scope, onClick) => _onClick__effect(_scope)),
6-
_clickCount$myButton_content = _$.registerDynamicClosure(
7-
"b2",
6+
_clickCount$myButton_content = _$.dynamicClosureRead(
87
1,
98
(_scope, clickCount) => _$.data(_scope[0], clickCount),
109
),
10+
_clickCount_closure = _$.dynamicClosure(_clickCount$myButton_content),
1111
_clickCount = _$.state(1, (_scope, clickCount) => {
12-
_onClick_(_scope[0], _onClick(_scope)),
13-
_clickCount$myButton_content(_scope);
12+
_onClick_(_scope[0], _onClick(_scope)), _clickCount_closure(_scope);
1413
});
1514
function _onClick(_scope, { 1: clickCount } = _scope) {
1615
return function () {

packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.expected/template.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ export const _template_ = _myButton_template;
22
export const _walks_ = /* beginChild, _myButton_walks, endChild */`/${_myButton_walks}&`;
33
import * as _$ from "@marko/runtime-tags/debug/dom";
44
import { _setup_ as _myButton, _content_ as _myButton_input_content, _onClick_ as _myButton_input_onClick, _template_ as _myButton_template, _walks_ as _myButton_walks } from "./tags/my-button.marko";
5-
const _clickCount$myButton_content = _$.registerDynamicClosure("__tests__/template.marko_1_clickCount/subscriber", "clickCount", (_scope, clickCount) => _$.data(_scope["#text/0"], clickCount));
6-
const _myButton_content = /* @__PURE__ */_$.createContent("__tests__/template.marko_1_renderer", " ", /* get */" ", 0, 0, _scope => _clickCount$myButton_content._(_scope));
5+
const _clickCount$myButton_content = /* @__PURE__ */_$.dynamicClosureRead("clickCount", (_scope, clickCount) => _$.data(_scope["#text/0"], clickCount));
6+
const _myButton_content = /* @__PURE__ */_$.createContent("__tests__/template.marko_1_renderer", " ", /* get */" ", 0, 0, _scope => _clickCount$myButton_content(_scope));
7+
const _clickCount_closure = /* @__PURE__ */_$.dynamicClosure(_clickCount$myButton_content);
78
const _clickCount = /* @__PURE__ */_$.state("clickCount/1", (_scope, clickCount) => {
89
_myButton_input_onClick(_scope["#childScope/0"], _onClick(_scope));
9-
_clickCount$myButton_content(_scope);
10+
_clickCount_closure(_scope);
1011
});
1112
export function _setup_(_scope) {
1213
_myButton(_scope["#childScope/0"]);

packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/template.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as _$ from "@marko/runtime-tags/debug/html";
22
import _myButton from "./tags/my-button.marko";
33
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", input => {
44
const _scope0_id = _$.nextScopeId();
5+
const _clickCount_closures = new Set();
56
const clickCount = 0;
67
const _childScope = _$.peekNextScope();
78
_myButton({
@@ -11,15 +12,16 @@ export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", inpu
1112
content: /* @__PURE__ */_$.createContent("__tests__/template.marko_1_renderer", () => {
1213
const _scope1_id = _$.nextScopeId();
1314
_$.write(`${_$.escapeXML(clickCount)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
14-
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_clickCount/subscriber");
15-
_$.writeScope(_scope1_id, {
16-
_: _$.ensureScopeWithId(_scope0_id)
17-
}, "__tests__/template.marko", "2:2");
15+
_$.writeSubscribe(_clickCount_closures, _$.writeScope(_scope1_id, {
16+
_: _$.ensureScopeWithId(_scope0_id),
17+
"clickCount(": 0
18+
}, "__tests__/template.marko", "2:2"));
1819
_$.resumeClosestBranch(_scope1_id);
1920
})
2021
});
2122
_$.writeScope(_scope0_id, {
2223
clickCount,
24+
"clickCount!": _clickCount_closures,
2325
"#childScope/0": _$.writeExistingScope(_childScope)
2426
}, "__tests__/template.marko", 0, {
2527
clickCount: "1:6"

packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/resume.expected.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</button>
1212
<!--M_*2 #button/0-->
1313
<script>
14-
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"#childScope/0":_.b={"#text/1!":_.c={},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,_.d),3,"__tests__/template.marko_1_clickCount/subscriber",2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
14+
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"clickCount!":_.e=new Set,"#childScope/0":_.b={"#text/1!":_.c={"clickCount(":0},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,(_.e).add(_.c),_.d),2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
1515
</script>
1616
</body>
1717
</html>
@@ -34,7 +34,7 @@ container.querySelector("button").click();
3434
</button>
3535
<!--M_*2 #button/0-->
3636
<script>
37-
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"#childScope/0":_.b={"#text/1!":_.c={},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,_.d),3,"__tests__/template.marko_1_clickCount/subscriber",2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
37+
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"clickCount!":_.e=new Set,"#childScope/0":_.b={"#text/1!":_.c={"clickCount(":0},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,(_.e).add(_.c),_.d),2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
3838
</script>
3939
</body>
4040
</html>
@@ -61,7 +61,7 @@ container.querySelector("button").click();
6161
</button>
6262
<!--M_*2 #button/0-->
6363
<script>
64-
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"#childScope/0":_.b={"#text/1!":_.c={},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,_.d),3,"__tests__/template.marko_1_clickCount/subscriber",2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
64+
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"clickCount!":_.e=new Set,"#childScope/0":_.b={"#text/1!":_.c={"clickCount(":0},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,(_.e).add(_.c),_.d),2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
6565
</script>
6666
</body>
6767
</html>
@@ -88,7 +88,7 @@ container.querySelector("button").click();
8888
</button>
8989
<!--M_*2 #button/0-->
9090
<script>
91-
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"#childScope/0":_.b={"#text/1!":_.c={},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,_.d),3,"__tests__/template.marko_1_clickCount/subscriber",2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
91+
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"clickCount!":_.e=new Set,"#childScope/0":_.b={"#text/1!":_.c={"clickCount(":0},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,(_.e).add(_.c),_.d),2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
9292
</script>
9393
</body>
9494
</html>

packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/ssr.expected.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Write
22
```html
3-
<button><!--M_[3-->0<!--M_*3 #text/0--><!--M_]2 #text/1--></button><!--M_*2 #button/0--><script>WALKER_RUNTIME("M")("_");M._.r=[_=>(_.d={1:_.a={clickCount:0,"#childScope/0":_.b={"#text/1!":_.c={},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,_.d),3,"__tests__/template.marko_1_clickCount/subscriber",2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()</script>
3+
<button><!--M_[3-->0<!--M_*3 #text/0--><!--M_]2 #text/1--></button><!--M_*2 #button/0--><script>WALKER_RUNTIME("M")("_");M._.r=[_=>(_.d={1:_.a={clickCount:0,"clickCount!":_.e=new Set,"#childScope/0":_.b={"#text/1!":_.c={"clickCount(":0},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,(_.e).add(_.c),_.d),2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()</script>
44
```
55

66
# Render End
@@ -16,7 +16,7 @@
1616
</button>
1717
<!--M_*2 #button/0-->
1818
<script>
19-
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"#childScope/0":_.b={"#text/1!":_.c={},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,_.d),3,"__tests__/template.marko_1_clickCount/subscriber",2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
19+
WALKER_RUNTIME("M")("_");M._.r=[_=&gt;(_.d={1:_.a={clickCount:0,"clickCount!":_.e=new Set,"#childScope/0":_.b={"#text/1!":_.c={"clickCount(":0},"#text/1(":"__tests__/template.marko_1_renderer"}},2:_.b,3:_.c},_.b.onClick=_._["__tests__/template.marko_0/onClick"](_.a),_.c._=_.a,(_.e).add(_.c),_.d),2,"__tests__/tags/my-button.marko_0_onClick",0];M._.w()
2020
</script>
2121
</body>
2222
</html>

packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.expected/tags/comments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const _input_path$for_content = /* @__PURE__ */_$.loopClosure("input_path", "#ul
6666
const _setup$for_content = _scope => {
6767
_open$for_content(_scope, true);
6868
};
69-
const _for_content = /* @__PURE__ */_$.createRenderer("<li><span> </span><button> </button><!></li>", /* get, next(2), get, out(1), get, next(1), get, out(1), replace */" E l D l%", _setup$for_content, () => _params_2$for_content, _scope => _input_path$for_content._(_scope));
69+
const _for_content = /* @__PURE__ */_$.createRenderer("<li><span> </span><button> </button><!></li>", /* get, next(2), get, out(1), get, next(1), get, out(1), replace */" E l D l%", _setup$for_content, _params_2$for_content, _scope => _input_path$for_content._(_scope));
7070
const _for = /* @__PURE__ */_$.loopOf("#ul/0", _for_content);
7171
export const _input_path_ = /* @__PURE__ */_$.value("input_path", (_scope, input_path) => _input_path$for_content(_scope));
7272
export const _input_comments_ = /* @__PURE__ */_$.value("input_comments", (_scope, input_comments) => _for(_scope, [input_comments]));
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// size: 57 (min) 61 (brotli)
2-
_$.registerDynamicClosure("b1", 3, (_scope, name) => _$.data(_scope[0], name));
1+
// size: 0

0 commit comments

Comments
 (0)