From fd780bc53fc6c0bff83d8b4df477bf62393c027e Mon Sep 17 00:00:00 2001 From: Voon Wong Date: Sat, 30 May 2026 05:19:38 +1000 Subject: [PATCH 1/2] fix: prevent crash firing lifecycle callbacks on closing browser tab --- .changeset/upset-moments-cheer.md | 6 + .sizes.json | 36 +++--- .sizes/comments.csr/runtime.js | 19 ++- .sizes/comments.ssr/runtime.js | 28 ++++- .sizes/counter.csr/runtime.js | 19 ++- .sizes/counter.ssr/runtime.js | 28 ++++- .sizes/dom.js | 30 ++++- .../__snapshots__/dom.bundle.js | 2 +- .../class/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../let/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../async-state/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../await-cleanup/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../await-closure/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../await-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../basic-counter/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../bind-to-input/__snapshots__/dom.bundle.js | 2 +- .../body-content/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../const-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../debug-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../embed-counter/__snapshots__/dom.bundle.js | 2 +- .../embed-removal/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../for-by/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../hoist-only/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../html-script/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../html-style/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../let-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.debug.js | 21 ++++ .../__snapshots__/dom.bundle.js | 15 +++ .../__snapshots__/html.bundle.debug.js | 10 ++ .../__snapshots__/html.bundle.js | 10 ++ .../__snapshots__/render.debug.md | 115 ++++++++++++++++++ .../__snapshots__/render.md | 115 ++++++++++++++++++ .../__snapshots__/writes.debug.html | 10 ++ .../__snapshots__/writes.html | 9 ++ .../lifecycle-pagehide/template.marko | 7 ++ .../fixtures/lifecycle-pagehide/test.ts | 33 +++++ .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../lifecycle-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../pure-signal/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../script-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../tag-var-rest/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../title-counter/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- packages/runtime-tags/src/dom/queue.ts | 21 ++++ packages/runtime-tags/src/dom/resume.ts | 3 +- 348 files changed, 827 insertions(+), 366 deletions(-) create mode 100644 .changeset/upset-moments-cheer.md create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.debug.js create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.debug.js create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.js create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.debug.md create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.md create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.debug.html create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.html create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/template.marko create mode 100644 packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/test.ts diff --git a/.changeset/upset-moments-cheer.md b/.changeset/upset-moments-cheer.md new file mode 100644 index 0000000000..5f91080c8c --- /dev/null +++ b/.changeset/upset-moments-cheer.md @@ -0,0 +1,6 @@ +--- +"@marko/runtime-tags": patch +"marko": patch +--- + +Prevent lifecycle callbacks firing on closing browser tab diff --git a/.sizes.json b/.sizes.json index 961a2027a2..0c067f1d29 100644 --- a/.sizes.json +++ b/.sizes.json @@ -7,8 +7,8 @@ { "name": "*", "total": { - "min": 21132, - "brotli": 7918 + "min": 21304, + "brotli": 7989 } }, { @@ -18,12 +18,12 @@ "brotli": 120 }, "runtime": { - "min": 4053, - "brotli": 1803 + "min": 4213, + "brotli": 1867 }, "total": { - "min": 4216, - "brotli": 1923 + "min": 4376, + "brotli": 1987 } }, { @@ -33,12 +33,12 @@ "brotli": 79 }, "runtime": { - "min": 2360, - "brotli": 1225 + "min": 2524, + "brotli": 1287 }, "total": { - "min": 2449, - "brotli": 1304 + "min": 2613, + "brotli": 1366 } }, { @@ -48,12 +48,12 @@ "brotli": 393 }, "runtime": { - "min": 6413, - "brotli": 2825 + "min": 6574, + "brotli": 2878 }, "total": { - "min": 7095, - "brotli": 3218 + "min": 7256, + "brotli": 3271 } }, { @@ -63,12 +63,12 @@ "brotli": 104 }, "runtime": { - "min": 2532, - "brotli": 1287 + "min": 2696, + "brotli": 1342 }, "total": { - "min": 2654, - "brotli": 1391 + "min": 2818, + "brotli": 1446 } } ] diff --git a/.sizes/comments.csr/runtime.js b/.sizes/comments.csr/runtime.js index 9fefe76699..3eca93a4de 100644 --- a/.sizes/comments.csr/runtime.js +++ b/.sizes/comments.csr/runtime.js @@ -1,4 +1,4 @@ -// size: 6413 (min) 2825 (brotli) +// size: 6574 (min) 2878 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -72,6 +72,7 @@ let decodeAccessor = (num) => pendingEffects = [], pendingScopes = [], rendering, + isUnloading = !1, runEffects = (effects) => { for (let i = 0; i < effects.length; ) effects[i++](effects[i++]); }, @@ -500,6 +501,21 @@ function loop(forEach) { function bySecondArg(_item, index) { return index; } +typeof window < "u" && + (window.addEventListener( + "pagehide", + () => { + isUnloading = !0; + }, + { capture: !0 }, + ), + window.addEventListener( + "pageshow", + () => { + isUnloading = !1; + }, + { capture: !0 }, + )); function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) { let key = scopeKey * 1e3 + signalKey, render = signalKey >= 0 && pendingRendersLookup[key]; @@ -529,6 +545,7 @@ function queueEffect(scope, fn) { pendingEffects.push(fn, scope); } function run() { + if (isUnloading) return; let effects = pendingEffects; asyncRendersLookup = {}; try { diff --git a/.sizes/comments.ssr/runtime.js b/.sizes/comments.ssr/runtime.js index 2d439ecf21..d815676021 100644 --- a/.sizes/comments.ssr/runtime.js +++ b/.sizes/comments.ssr/runtime.js @@ -1,4 +1,4 @@ -// size: 2532 (min) 1287 (brotli) +// size: 2696 (min) 1342 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -14,6 +14,7 @@ let decodeAccessor = (num) => pendingEffects = [], pendingScopes = [], rendering, + isUnloading = !1, runEffects = (effects) => { for (let i = 0; i < effects.length; ) effects[i++](effects[i++]); }, @@ -175,10 +176,11 @@ function init(runtimeId = "M") { }); } function runResumeEffects(render) { - try { - runEffects(render.m(), 1); - } finally { - } + if (!isUnloading) + try { + runEffects(render.m(), 1); + } finally { + } } function _resume(id, obj) { return (registeredValues[id] = obj); @@ -202,6 +204,21 @@ function _text(node, value) { function normalizeAttrValue(value) { if (value || value === 0) return value === !0 ? "" : value + ""; } +typeof window < "u" && + (window.addEventListener( + "pagehide", + () => { + isUnloading = !0; + }, + { capture: !0 }, + ), + window.addEventListener( + "pageshow", + () => { + isUnloading = !1; + }, + { capture: !0 }, + )); function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) { let key = scopeKey * 1e3 + signalKey, render = signalKey >= 0 && pendingRendersLookup[key]; @@ -231,6 +248,7 @@ function queueEffect(scope, fn) { pendingEffects.push(fn, scope); } function run() { + if (isUnloading) return; let effects = pendingEffects; asyncRendersLookup = {}; try { diff --git a/.sizes/counter.csr/runtime.js b/.sizes/counter.csr/runtime.js index 4d998f10a5..58f63ebe23 100644 --- a/.sizes/counter.csr/runtime.js +++ b/.sizes/counter.csr/runtime.js @@ -1,4 +1,4 @@ -// size: 4053 (min) 1803 (brotli) +// size: 4213 (min) 1867 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -67,6 +67,7 @@ let decodeAccessor = (num) => pendingEffects = [], pendingScopes = [], rendering, + isUnloading = !1, runEffects = (effects) => { for (let i = 0; i < effects.length; ) effects[i++](effects[i++]); }, @@ -250,6 +251,21 @@ function toInsertNode(startNode, endNode) { } return parent; } +typeof window < "u" && + (window.addEventListener( + "pagehide", + () => { + isUnloading = !0; + }, + { capture: !0 }, + ), + window.addEventListener( + "pageshow", + () => { + isUnloading = !1; + }, + { capture: !0 }, + )); function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) { let key = scopeKey * 1e3 + signalKey, render = signalKey >= 0 && pendingRendersLookup[key]; @@ -279,6 +295,7 @@ function queueEffect(scope, fn) { pendingEffects.push(fn, scope); } function run() { + if (isUnloading) return; let effects = pendingEffects; asyncRendersLookup = {}; try { diff --git a/.sizes/counter.ssr/runtime.js b/.sizes/counter.ssr/runtime.js index a9f65dd9f1..87d1017272 100644 --- a/.sizes/counter.ssr/runtime.js +++ b/.sizes/counter.ssr/runtime.js @@ -1,4 +1,4 @@ -// size: 2360 (min) 1225 (brotli) +// size: 2524 (min) 1287 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -14,6 +14,7 @@ let decodeAccessor = (num) => pendingEffects = [], pendingScopes = [], rendering, + isUnloading = !1, runEffects = (effects) => { for (let i = 0; i < effects.length; ) effects[i++](effects[i++]); }, @@ -175,10 +176,11 @@ function init(runtimeId = "M") { }); } function runResumeEffects(render) { - try { - runEffects(render.m(), 1); - } finally { - } + if (!isUnloading) + try { + runEffects(render.m(), 1); + } finally { + } } function _resume(id, obj) { return (registeredValues[id] = obj); @@ -190,6 +192,21 @@ function _text(node, value) { let normalizedValue = _to_text(value); node.data !== normalizedValue && (node.data = normalizedValue); } +typeof window < "u" && + (window.addEventListener( + "pagehide", + () => { + isUnloading = !0; + }, + { capture: !0 }, + ), + window.addEventListener( + "pageshow", + () => { + isUnloading = !1; + }, + { capture: !0 }, + )); function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) { let key = scopeKey * 1e3 + signalKey, render = signalKey >= 0 && pendingRendersLookup[key]; @@ -219,6 +236,7 @@ function queueEffect(scope, fn) { pendingEffects.push(fn, scope); } function run() { + if (isUnloading) return; let effects = pendingEffects; asyncRendersLookup = {}; try { diff --git a/.sizes/dom.js b/.sizes/dom.js index b9a2e3ea0a..35d4f9e9eb 100644 --- a/.sizes/dom.js +++ b/.sizes/dom.js @@ -1,4 +1,4 @@ -// size: 21132 (min) 7918 (brotli) +// size: 21304 (min) 7989 (brotli) //#region packages/runtime-tags/dist/dom.mjs let empty = [], rest = Symbol(), @@ -204,6 +204,7 @@ let empty = [], pendingEffects = [], pendingScopes = [], rendering, + isUnloading = !1, runEffects = (effects) => { for (let i = 0; i < effects.length; ) effects[i++](effects[i++]); }, @@ -933,11 +934,12 @@ function init(runtimeId = "M") { }); } function runResumeEffects(render) { - try { - ((isResuming = 1), runEffects(render.m(), 1)); - } finally { - isResuming = 0; - } + if (!isUnloading) + try { + ((isResuming = 1), runEffects(render.m(), 1)); + } finally { + isResuming = 0; + } } function getRegisteredWithScope(id, scope) { let val = registeredValues[id]; @@ -1916,6 +1918,21 @@ function bySecondArg(_item, index) { function byFirstArg(name) { return name; } +typeof window < "u" && + (window.addEventListener( + "pagehide", + () => { + isUnloading = !0; + }, + { capture: !0 }, + ), + window.addEventListener( + "pageshow", + () => { + isUnloading = !1; + }, + { capture: !0 }, + )); function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) { let key = scopeKey * 1e3 + signalKey, render = signalKey >= 0 && pendingRendersLookup[key]; @@ -1945,6 +1962,7 @@ function queueEffect(scope, fn) { pendingEffects.push(fn, scope); } function run() { + if (isUnloading) return; let effects = pendingEffects; asyncRendersLookup = {}; try { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js index 1a018c07a4..8d5d6bacdb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 953 (min) 472 (brotli) +// total: 1111 (min) 535 (brotli) // v:template.marko.hydrate-6.js: 0 (min) 1 (brotli) var v_template_marko_hydrate_6_default = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js index f5159810b0..5976471dd2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 49538 (min) 14678 (brotli) +// total: 49700 (min) 14721 (brotli) // template.marko: 423 (min) 239 (brotli) var import_components = require_components(); var import_vdom = require_vdom(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js index 1880834d8b..fc51bcf56b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67576 (min) 21037 (brotli) +// total: 67745 (min) 21033 (brotli) // components/custom-tag.marko: 240 (min) 162 (brotli) var import_vdom = require_vdom(); const $template = ""; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js index 7ac9986a21..e9925e85e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65515 (min) 20120 (brotli) +// total: 65677 (min) 20197 (brotli) // components/tags-counter.marko: 115 (min) 99 (brotli) var import_vdom = require_vdom(); const $template = ""; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js index 4846aed4b3..51b30e35f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66790 (min) 20729 (brotli) +// total: 66959 (min) 20764 (brotli) // components/class-counter.marko: 432 (min) 249 (brotli) var import_vdom = require_vdom(); var import_renderer = /* @__PURE__ */ __toESM(require_renderer()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js index d193574302..d2f3109158 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66343 (min) 20416 (brotli) +// total: 66513 (min) 20520 (brotli) // tags/components/hello-internal.marko: 335 (min) 193 (brotli) var import_vdom = require_vdom(); var import_const_element = /* @__PURE__ */ __toESM(require_const_element()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js index 7ac9986a21..e9925e85e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65515 (min) 20120 (brotli) +// total: 65677 (min) 20197 (brotli) // components/tags-counter.marko: 115 (min) 99 (brotli) var import_vdom = require_vdom(); const $template = ""; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js index 4ffb5e7120..5f55d74e50 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67104 (min) 20808 (brotli) +// total: 67271 (min) 20852 (brotli) // components/my-button.marko: 422 (min) 238 (brotli) var import_vdom = require_vdom(); var import_dynamic_tag = /* @__PURE__ */ __toESM(require_dynamic_tag()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js index 7a2b478441..df5a861030 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66741 (min) 20648 (brotli) +// total: 66910 (min) 20744 (brotli) // components/class-counter.marko: 454 (min) 258 (brotli) var import_vdom = require_vdom(); var import_renderer = /* @__PURE__ */ __toESM(require_renderer()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js index b14d545f82..ac7762dc12 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65839 (min) 20254 (brotli) +// total: 66000 (min) 20293 (brotli) // components/tags-layout.marko: 134 (min) 108 (brotli) var import_vdom = require_vdom(); var import_attr_tag = require_attr_tag(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js index 19f8323511..ee406d3b5e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65510 (min) 20090 (brotli) +// total: 65672 (min) 20210 (brotli) // components/tags-layout.marko: 115 (min) 98 (brotli) var import_vdom = require_vdom(); const $template = "
"; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js index 12b56d857a..63b9d144aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67209 (min) 20836 (brotli) +// total: 67378 (min) 20918 (brotli) // components/class-layout.marko: 536 (min) 288 (brotli) var import_vdom = require_vdom(); var import_dynamic_tag = /* @__PURE__ */ __toESM(require_dynamic_tag()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js index 14f7a99940..f23b8d80c3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66503 (min) 20514 (brotli) +// total: 66671 (min) 20613 (brotli) // components/my-button/component-browser.js: 91 (min) 60 (brotli) var import_registry = require_registry(); var import_renderer = /* @__PURE__ */ __toESM(require_renderer()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js index 435bba372f..97bb124a29 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65857 (min) 20311 (brotli) +// total: 66019 (min) 20311 (brotli) // components/tags-layout.marko: 183 (min) 146 (brotli) var import_vdom = require_vdom(); const $template = "
"; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js index fb3647ef5d..caf60f860d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67562 (min) 21060 (brotli) +// total: 67730 (min) 21087 (brotli) // components/class-layout.marko: 549 (min) 291 (brotli) var import_vdom = require_vdom(); var import_dynamic_tag = /* @__PURE__ */ __toESM(require_dynamic_tag()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js index c600c96e68..ca71b89f8f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3040 (min) 1517 (brotli) +// total: 3204 (min) 1577 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js index 431a0a3a51..d72e3dc99a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2826 (min) 1453 (brotli) +// total: 2990 (min) 1511 (brotli) // template.marko: 279 (min) 181 (brotli) const $pattern2 = ($scope, $pattern) => { $foo2($scope, $pattern.foo); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js index 177b405bb7..e95e1408db 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2351 (min) 1243 (brotli) +// total: 2515 (min) 1304 (brotli) // tags/child.marko: 128 (min) 102 (brotli) const $input__script = _script("b0", ($scope) => { { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js index e19d89d2ef..9f76f93997 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2653 (min) 1375 (brotli) +// total: 2817 (min) 1431 (brotli) // template.marko: 164 (min) 125 (brotli) const $bar__OR__$fooChange = /* @__PURE__ */ _or(7, _script("a1", ($scope) => _on($scope.a, "click", function() { $scope.g($scope.d + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js index b817fd3512..bc0fc09c1b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2514 (min) 1313 (brotli) +// total: 2678 (min) 1371 (brotli) // template.marko: 120 (min) 96 (brotli) function identity(fn) { return fn; diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js index 7aa23b6b1d..e243a52fd8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2687 (min) 1379 (brotli) +// total: 2851 (min) 1438 (brotli) // template.marko: 240 (min) 152 (brotli) const $resetCount2 = /* @__PURE__ */ _const(4, _script("a1", ($scope) => _on($scope.c, "click", $scope.e))); const $count__script = _script("a2", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js index 4089d8407c..8be9c8653c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5581 (min) 2584 (brotli) +// total: 5747 (min) 2653 (brotli) // template.marko: 121 (min) 97 (brotli) const $if = /* @__PURE__ */ _if(0, "", " b", _script("a0", ($scope) => _on($scope.a, "click", function() { $hide($scope._, true); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js index 822166cfe6..4848356d45 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2559 (min) 1329 (brotli) +// total: 2723 (min) 1388 (brotli) // template.marko: 174 (min) 126 (brotli) const $liveCount = /* @__PURE__ */ _let(2, ($scope) => _text($scope.b, $scope.c)); const $count = /* @__PURE__ */ _let(3); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js index 639db5eea3..284e66dad9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1785 (min) 950 (brotli) +// total: 1949 (min) 1012 (brotli) // template.marko: 67 (min) 63 (brotli) const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function(_, el) { el.textContent = "0"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js index ce781dcf1d..d8f97db3d6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7015 (min) 3137 (brotli) +// total: 7182 (min) 3198 (brotli) // template.marko: 570 (min) 224 (brotli) const multiply = (multiplier, n) => resolveAfter(multiplier * n); const $await_content5__result = ($scope, result) => _text($scope.a, result); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js index 8a04d96e43..a9b06fb90b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6276 (min) 2841 (brotli) +// total: 6442 (min) 2904 (brotli) // template.marko: 232 (min) 129 (brotli) _enable_catch(); const $await_content3__setup = _script("a4", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js index 50742d825b..04e0a0218c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8487 (min) 3737 (brotli) +// total: 8654 (min) 3788 (brotli) // template.marko: 274 (min) 175 (brotli) _enable_catch(); const $await_content__value = ($scope, value) => _text($scope.a, value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js index 5b698c0b9f..6fb2a12fc5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13020 (min) 5030 (brotli) +// total: 13187 (min) 5076 (brotli) // tags/hello/index.marko: 0 (min) 1 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, 0, 0, 1); const $input_item = ($scope, input_item) => $dynamicTag($scope, input_item, () => [1]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js index 13523fc4ac..b81dcff070 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6211 (min) 2549 (brotli) +// total: 6377 (min) 2607 (brotli) // tags/hello/index.marko: 114 (min) 53 (brotli) const $for_content3__row__script = _script("b1", ($scope) => _attrs_script($scope, "a")); const $for_content2__col__script = _script("b2", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js index 23572d42cb..3eeac60de3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3096 (min) 1583 (brotli) +// total: 3260 (min) 1641 (brotli) // template.marko: 172 (min) 149 (brotli) const $item_content__mult__OR__item = /* @__PURE__ */ _or(1, ($scope) => _text($scope.a, $scope.f * $scope._.d)); const $item_content__mult = /* @__PURE__ */ _closure_get(3, $item_content__mult__OR__item); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js index d3c6898e66..5e27d09f64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2706 (min) 1389 (brotli) +// total: 2870 (min) 1445 (brotli) // template.marko: 144 (min) 109 (brotli) const $disabled__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $disabled($scope, !$scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js index d225c6ee7b..c7b0df006b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2494 (min) 1306 (brotli) +// total: 2658 (min) 1365 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js index a652f908c1..3e7eaecabb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9521 (min) 4106 (brotli) +// total: 9689 (min) 4159 (brotli) // template.marko: 732 (min) 350 (brotli) _enable_catch(); const $await_content2__setup__script = _script("a2", ($scope) => $signal($scope, 0).onabort = () => document.querySelector("#two").textContent = "Pass"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js index 432c09572b..11d1466410 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6839 (min) 3100 (brotli) +// total: 7005 (min) 3163 (brotli) // template.marko: 194 (min) 139 (brotli) _enable_catch(); const $placeholder_content = _content_resume("a2", "loading...", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js index 796ba72d1e..ba8908ba49 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6313 (min) 2884 (brotli) +// total: 6479 (min) 2948 (brotli) // template.marko: 189 (min) 145 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(3, 0, ($scope) => _text($scope.a, $scope._.e)); const $if = /* @__PURE__ */ _if(3, " ", "D l", $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js index 2e37293abf..ef8171409a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7006 (min) 3188 (brotli) +// total: 7173 (min) 3245 (brotli) // template.marko: 248 (min) 171 (brotli) _enable_catch(); const $if_content__value = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js index 2bdd8eeb44..c14f1956c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7175 (min) 3249 (brotli) +// total: 7341 (min) 3301 (brotli) // template.marko: 228 (min) 163 (brotli) _enable_catch(); const $placeholder_content = _content_resume("a1", "loading...", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js index df00f1ffb9..4dfd14c537 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8368 (min) 3664 (brotli) +// total: 8535 (min) 3722 (brotli) // template.marko: 364 (min) 215 (brotli) _enable_catch(); const $await_content__setup = _script("a0", ($scope) => document.querySelector("#outside").textContent = "Fail"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js index 7ed2ffaf75..d1b2dfa6e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3481 (min) 1728 (brotli) +// total: 3645 (min) 1775 (brotli) // template.marko: 222 (min) 118 (brotli) const $await_content3__count = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.b, $scope._.e)); const $await_content2__count = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.b, $scope._.e)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js index d1e5d3d176..938a468999 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8370 (min) 3672 (brotli) +// total: 8537 (min) 3720 (brotli) // template.marko: 416 (min) 224 (brotli) _enable_catch(); const $await_content__value__script = _script("a0", ($scope) => console.log(`effect ran value=${$scope.c}`)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js index 1647342600..7e30eee54b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8372 (min) 3670 (brotli) +// total: 8539 (min) 3721 (brotli) // template.marko: 418 (min) 227 (brotli) _enable_catch(); const $await_content__value__script = _script("a0", ($scope) => console.log(`effect ran value=${$scope.c}`)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js index 8fbba5b727..79d57d75ca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2631 (min) 1360 (brotli) +// total: 2795 (min) 1418 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.e)); const $onClick$1 = /* @__PURE__ */ _const(4, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js index 47b278a60a..9b1649c09b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2631 (min) 1361 (brotli) +// total: 2795 (min) 1417 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.f)); const $onClick$1 = /* @__PURE__ */ _const(5, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js index ecc36c06c0..0f4af4ac50 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2763 (min) 1405 (brotli) +// total: 2927 (min) 1463 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.f)); const $onClick$1 = /* @__PURE__ */ _const(5, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js index a2be7f63e9..4b7239aebd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1370 (brotli) +// total: 2822 (min) 1431 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.f)); const $onClick$1 = /* @__PURE__ */ _const(5, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js index 8fbba5b727..79d57d75ca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2631 (min) 1360 (brotli) +// total: 2795 (min) 1418 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.e)); const $onClick$1 = /* @__PURE__ */ _const(4, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js index 8deef25ef5..202c1aeff0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3092 (min) 1574 (brotli) +// total: 3256 (min) 1631 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.e)); const $onClick$1 = /* @__PURE__ */ _const(4, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js index f31f11171d..38b1c4b255 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2494 (min) 1306 (brotli) +// total: 2658 (min) 1365 (brotli) // tags/counter.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("b0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js index 49d52a36ee..d5a5e9443d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5903 (min) 2718 (brotli) +// total: 6069 (min) 2783 (brotli) // template.marko: 254 (min) 161 (brotli) const $if_content__count = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.e)); const $if = /* @__PURE__ */ _if(2, "The count is ", "b%b", $if_content__count); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js index 45d816513c..59aff8af06 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5901 (min) 2710 (brotli) +// total: 6067 (min) 2776 (brotli) // template.marko: 252 (min) 159 (brotli) const $if_content__count = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.e)); const $if = /* @__PURE__ */ _if(2, " ", "D l", $if_content__count); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js index 78b3bb0271..5218384415 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2611 (min) 1350 (brotli) +// total: 2775 (min) 1410 (brotli) // template.marko: 156 (min) 126 (brotli) const $increment2 = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.a, "click", $scope.d))); const $clickCount = /* @__PURE__ */ _let(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js index 4bd60df4e5..e9f6e9ce5b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2716 (min) 1403 (brotli) +// total: 2880 (min) 1461 (brotli) // template.marko: 236 (min) 139 (brotli) const $multipliedCount = ($scope, multipliedCount) => _text($scope.d, multipliedCount); const $count__OR__multiplier = /* @__PURE__ */ _or(6, ($scope) => $multipliedCount($scope, $scope.e * $scope.f)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js index 034753c6f2..b259b3a68f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2494 (min) 1306 (brotli) +// total: 2658 (min) 1365 (brotli) // template.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js index 39fabbc93a..43d8fff3bd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1463 (min) 812 (brotli) +// total: 1627 (min) 880 (brotli) // template.marko: 51 (min) 55 (brotli) const $setup__script = _script("a0", ($scope) => document.body.className = "no-deps"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js index abbc63e000..a8d13c3d2f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5925 (min) 2734 (brotli) +// total: 6091 (min) 2797 (brotli) // template.marko: 199 (min) 148 (brotli) const $if_content__message_text = /* @__PURE__ */ _if_closure(1, 0, ($scope) => _text($scope.a, $scope._.d)); const $if_content__setup = $if_content__message_text; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js index d225c6ee7b..c7b0df006b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2494 (min) 1306 (brotli) +// total: 2658 (min) 1365 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js index 5403379a89..3792528325 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2621 (min) 1368 (brotli) +// total: 2785 (min) 1422 (brotli) // template.marko: 126 (min) 110 (brotli) const $a__OR__b = /* @__PURE__ */ _or(4, _script("a0", ($scope) => _on($scope.a, "click", function() { $a($scope, $scope.c.map((a) => $scope.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js index 4f10168cbf..8db4747617 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2481 (min) 1298 (brotli) +// total: 2645 (min) 1356 (brotli) // template.marko: 87 (min) 79 (brotli) const $data = /* @__PURE__ */ _let(2, ($scope) => _text($scope.b, $scope.c)); const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js index 8b5093b591..977be2eb23 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2699 (min) 1391 (brotli) +// total: 2863 (min) 1451 (brotli) // tags/comments.marko: 137 (min) 121 (brotli) const $for_content__open__script = _script("b0", ($scope) => _on($scope.c, "click", function() { $for_content__open($scope, !$scope.m); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js index b8bec23e59..662195a8bc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2772 (min) 1428 (brotli) +// total: 2936 (min) 1490 (brotli) // template.marko: 217 (min) 166 (brotli) const $items__OR__index__script = _script("a0", ($scope) => _on($scope.c, "click", function() { const newItems = $scope.d.slice(1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js index 0fd77ababb..3ec9434ed1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2717 (min) 1417 (brotli) +// total: 2881 (min) 1472 (brotli) // template.marko: 268 (min) 197 (brotli) const names = [ "Dylan", diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js index 6f1aa805f7..0eb80bb610 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2807 (min) 1423 (brotli) +// total: 2971 (min) 1486 (brotli) // template.marko: 152 (min) 105 (brotli) const $foo = /* @__PURE__ */ _let(3, ($scope) => { _attr_class($scope.a, ($scope.d, $scope.d.class)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js index b1fcf156cb..a710bc9491 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7237 (min) 3348 (brotli) +// total: 7403 (min) 3412 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js index 5eefb180fa..b9244e5888 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13584 (min) 5273 (brotli) +// total: 13752 (min) 5335 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js index 5fa6441a1e..c3e891d838 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2967 (min) 1519 (brotli) +// total: 3131 (min) 1577 (brotli) // template.marko: 136 (min) 111 (brotli) const $child_content__count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope._, $scope._.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js index 2fffd73b46..723da85c20 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4533 (min) 2130 (brotli) +// total: 4699 (min) 2183 (brotli) // template.marko: 194 (min) 147 (brotli) const $falseChild_content__count__script = _script("a1", ($scope) => _on($scope.a, "click", function() { $count($scope._, $scope._.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js index 5b8c13cb94..c87c7ab238 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2946 (min) 1493 (brotli) +// total: 3110 (min) 1545 (brotli) // template.marko: 195 (min) 129 (brotli) const $for_content__selected__OR__num = /* @__PURE__ */ _or(4, ($scope) => { _attr($scope.a, "data-selected", $scope._.b === $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js index 64653d85bb..ca5bca6046 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5941 (min) 2748 (brotli) +// total: 6107 (min) 2815 (brotli) // template.marko: 295 (min) 197 (brotli) const $else_content__clickCount = /* @__PURE__ */ _if_closure(0, 1, ($scope) => _text($scope.a, $scope._.b)); const $else_content__setup = $else_content__clickCount; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js index 5c8ad6d6d8..24c75206cf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6919 (min) 3196 (brotli) +// total: 7085 (min) 3263 (brotli) // template.marko: 280 (min) 185 (brotli) const $for_content__item = ($scope, item) => _text($scope.a, item); const $for_content__$params = ($scope, $params2) => $for_content__item($scope, $params2[0]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js index a8a9fd4f0c..8763ee3c22 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7027 (min) 3215 (brotli) +// total: 7193 (min) 3277 (brotli) // template.marko: 317 (min) 195 (brotli) const $for_content__x = ($scope, x) => _text($scope.a, x); const $for_content__$params = ($scope, $params2) => $for_content__x($scope, $params2[0]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js index 7ae999c796..52ff47b143 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5579 (min) 2594 (brotli) +// total: 5745 (min) 2661 (brotli) // template.marko: 117 (min) 98 (brotli) const $if = /* @__PURE__ */ _if(0, "Hello!", "b"); const $show__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js index 034753c6f2..b259b3a68f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2494 (min) 1306 (brotli) +// total: 2658 (min) 1365 (brotli) // template.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js index e059929cfe..615e3f023e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5846 (min) 2703 (brotli) +// total: 6012 (min) 2758 (brotli) // template.marko: 191 (min) 145 (brotli) const $if_content__message = /* @__PURE__ */ _if_closure(1, 0, ($scope) => _text($scope.a, $scope._.d)); const $if = /* @__PURE__ */ _if(1, " ", "D l", $if_content__message); diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js index 242fab67da..d7fd6ec38d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2630 (min) 1375 (brotli) +// total: 2794 (min) 1426 (brotli) // template.marko: 138 (min) 114 (brotli) const $a__OR__b__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $a($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js index 62b37a904f..05a609e57f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3471 (min) 1718 (brotli) +// total: 3635 (min) 1780 (brotli) // tags/counter.marko: 116 (min) 100 (brotli) const $x__script = _script("b0", ($scope) => _on($scope.a, "click", function() { $x$1($scope, $scope.j + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js index 989000f4b1..04609738a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9041 (min) 3485 (brotli) +// total: 9207 (min) 3536 (brotli) // tags/FancyButton.marko: 38 (min) 42 (brotli) const $attrs__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $attrs = /* @__PURE__ */ _const(5, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js index c8ee5f1f44..e601dee247 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2675 (min) 1382 (brotli) +// total: 2839 (min) 1441 (brotli) // template.marko: 191 (min) 125 (brotli) const $if_content__count = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.d)); const $count__script = _script("a1", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js index 2f7e1a71f1..b9ec5ef72b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1839 (min) 971 (brotli) +// total: 2003 (min) 1033 (brotli) // template.marko: 127 (min) 90 (brotli) const $fooChange2 = /* @__PURE__ */ _const(2, _script("a1", ($scope) => _on($scope.a, "click", function() { $scope.c("After"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js index a030aafb41..9463921a14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1531 (min) 826 (brotli) +// total: 1695 (min) 894 (brotli) // tags/child.marko: 24 (min) 28 (brotli) const $input_valueChange__script = _script("b0", ($scope) => $scope.c(1)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js index e669e0c8f1..28a64fe092 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7487 (min) 3451 (brotli) +// total: 7653 (min) 3535 (brotli) // tags/child.marko: 92 (min) 72 (brotli) const $template = "

"; const $walks = "D lD lD l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js index bccb9a4a97..1d9a0d9078 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7306 (min) 3247 (brotli) +// total: 7473 (min) 3311 (brotli) // tags/child.marko: 92 (min) 73 (brotli) const $template = "
a
a

a

"; const $walks = "D%lD%lD%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js index bc9bba5faa..3b7fddef16 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5820 (min) 2693 (brotli) +// total: 5986 (min) 2755 (brotli) // template.marko: 279 (min) 179 (brotli) const $if_content__setup__script = _script("a0", ($scope) => { $scope._.b.innerHTML += "\nmounted"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js index bf13724c02..fe5c5b6ef3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5997 (min) 2765 (brotli) +// total: 6163 (min) 2820 (brotli) // tags/child.marko: 90 (min) 72 (brotli) const $template = "
a
b

c

"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js index 88f0821d55..f3fdb7a7e2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7937 (min) 3621 (brotli) +// total: 8104 (min) 3674 (brotli) // tags/child.marko: 68 (min) 63 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js index 1c282a8bdd..d538e9e4c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7437 (min) 3425 (brotli) +// total: 7603 (min) 3489 (brotli) // tags/child.marko: 92 (min) 72 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js index b28e5e9aa1..f9eb85339c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7240 (min) 3225 (brotli) +// total: 7407 (min) 3283 (brotli) // tags/child.marko: 92 (min) 72 (brotli) const $template = "

"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js index 977d271bf8..c0bef41029 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5802 (min) 2684 (brotli) +// total: 5968 (min) 2735 (brotli) // template.marko: 261 (min) 172 (brotli) const $if_content__setup__script = _script("a0", ($scope) => { $scope._.b.innerHTML += "\nmounted"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js index 00ccd459b5..6614b22d42 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5979 (min) 2753 (brotli) +// total: 6145 (min) 2806 (brotli) // tags/child.marko: 90 (min) 72 (brotli) const $template = "
child
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js index 3bd5588c89..30e927b47c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1534 (min) 839 (brotli) +// total: 1698 (min) 907 (brotli) // template.marko: 134 (min) 94 (brotli) const $if_content__run = /* @__PURE__ */ _const(1, _script("a2", ($scope) => $scope.b())); function $run($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js index 7302bb7149..b52fb8d075 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5872 (min) 2712 (brotli) +// total: 6038 (min) 2780 (brotli) // template.marko: 230 (min) 163 (brotli) const $if_content__getMessage = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.h())); const $if = /* @__PURE__ */ _if(0, " ", "D l", $if_content__getMessage); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js index 1fd79b7f74..34775c8f75 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2624 (min) 1371 (brotli) +// total: 2788 (min) 1423 (brotli) // tags/counter.marko: 129 (min) 113 (brotli) const $input__OR__count = /* @__PURE__ */ _or(5, ($scope) => _text($scope.b, $scope.d.format($scope.e))); const $count__script = _script("b0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js index dc91aafd0a..6add24e6f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2701 (min) 1399 (brotli) +// total: 2865 (min) 1456 (brotli) // tags/display-intersection.marko: 0 (min) 1 (brotli) const $input_value__OR__dummy = /* @__PURE__ */ _or(5, ($scope) => _text($scope.a, ($scope.e, $scope.d))); const $value = /* @__PURE__ */ _const(3, $input_value__OR__dummy); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js index f67b24633d..b642dc6cf0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2718 (min) 1401 (brotli) +// total: 2882 (min) 1452 (brotli) // tags/counter.marko: 129 (min) 113 (brotli) const $input__OR__count = /* @__PURE__ */ _or(5, ($scope) => _text($scope.b, $scope.d.format($scope.e))); const $count__script = _script("b0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js index 4fb21996ab..b188f23d70 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 15160 (min) 5971 (brotli) +// total: 15328 (min) 6014 (brotli) // tags/sections.marko: 0 (min) 1 (brotli) const $if_content__dynamicTag = /* @__PURE__ */ _dynamic_tag(0); const $if_content__content = /* @__PURE__ */ _if_closure(0, 0, ($scope) => $if_content__dynamicTag($scope, $scope._.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js index f3ac0d88a8..9e5c52c684 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5593 (min) 2601 (brotli) +// total: 5759 (min) 2667 (brotli) // template.marko: 131 (min) 105 (brotli) const $if = /* @__PURE__ */ _if(0, "Hi", "b"); const $show__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js index 2af3ad3554..a5d84c248c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1788 (min) 966 (brotli) +// total: 1952 (min) 1025 (brotli) // template.marko: 60 (min) 52 (brotli) const $y_getter = _hoist_resume("a1", 4); function $y() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js index df8cf391c6..4398c3b4c3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3026 (min) 1547 (brotli) +// total: 3190 (min) 1605 (brotli) // tags/outer.marko: 61 (min) 65 (brotli) const $inner_content__setup__script = _script("c0", ($scope) => _on($scope.a, "click", function() { this.doThing(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js index b8be9e4bcd..c7ca377a48 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8005 (min) 3605 (brotli) +// total: 8172 (min) 3661 (brotli) // template.marko: 490 (min) 292 (brotli) const $for_content__checked = /* @__PURE__ */ _let(6, ($scope) => _attr_input_checked($scope, "a", $scope.g, $checkedChange($scope))); const $for_content__states__OR__state = /* @__PURE__ */ _or(3, ($scope) => $for_content__checked($scope, $scope.c, $valueChange($scope))); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js index 8d33ff8f36..b0d4abe62d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8588 (min) 3291 (brotli) +// total: 8754 (min) 3345 (brotli) // tags/checkbox.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js index 49940230b8..c33c206e07 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4511 (min) 2022 (brotli) +// total: 4677 (min) 2084 (brotli) // template.marko: 566 (min) 190 (brotli) const $checked = /* @__PURE__ */ _let(5, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.f, $checkedValueChange($scope), 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js index 82eea61367..cfd8babb7d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4249 (min) 1922 (brotli) +// total: 4413 (min) 1976 (brotli) // template.marko: 480 (min) 164 (brotli) const $checked = /* @__PURE__ */ _let(4, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.e + "", $checkedValueChange($scope), 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js index b1f960b8f0..e6abe22a5c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8838 (min) 3351 (brotli) +// total: 9004 (min) 3414 (brotli) // tags/radio.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js index ffea9fcfab..d840a0043e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4254 (min) 1946 (brotli) +// total: 4418 (min) 2012 (brotli) // template.marko: 372 (min) 157 (brotli) const $checkedValue__OR__$checkedValueChange = /* @__PURE__ */ _or(6, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.e, $scope.f, "a"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js index a99b8d2d9f..eecf24ca04 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8841 (min) 3355 (brotli) +// total: 9007 (min) 3416 (brotli) // tags/checkbox.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js index ffea9fcfab..d840a0043e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4254 (min) 1946 (brotli) +// total: 4418 (min) 2012 (brotli) // template.marko: 372 (min) 157 (brotli) const $checkedValue__OR__$checkedValueChange = /* @__PURE__ */ _or(6, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.e, $scope.f, "a"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js index cc42cfe4d1..99302bb268 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3227 (min) 1553 (brotli) +// total: 3391 (min) 1607 (brotli) // template.marko: 180 (min) 117 (brotli) const $checked = /* @__PURE__ */ _let(2, ($scope) => { _attr_input_checked($scope, "a", $scope.c, $checkedChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js index 683b7e8824..12600f2b2e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2588 (min) 1328 (brotli) +// total: 2752 (min) 1392 (brotli) // template.marko: 198 (min) 129 (brotli) const $open = /* @__PURE__ */ _let(2, ($scope) => { _attr_details_or_dialog_open($scope, "a", $scope.c, $openChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js index 683b7e8824..12600f2b2e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2588 (min) 1328 (brotli) +// total: 2752 (min) 1392 (brotli) // template.marko: 198 (min) 129 (brotli) const $open = /* @__PURE__ */ _let(2, ($scope) => { _attr_details_or_dialog_open($scope, "a", $scope.c, $openChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js index 11aeda9468..1654891e7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7950 (min) 3469 (brotli) +// total: 8117 (min) 3524 (brotli) // template.marko: 606 (min) 261 (brotli) const $if_content__checkedValue__OR__$checkedValueChange = /* @__PURE__ */ _or(1, ($scope) => _attr_input_checkedValue($scope, "a", $scope._.g, $scope._.h, "b")); const $if_content__checkedValue = /* @__PURE__ */ _if_closure(1, 0, $if_content__checkedValue__OR__$checkedValueChange); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js index 7a05024961..1095ea8d98 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4002 (min) 1874 (brotli) +// total: 4168 (min) 1938 (brotli) // tags/custom-input.marko: 108 (min) 80 (brotli) const $input_value__OR__input_valueChange = /* @__PURE__ */ _or(5, ($scope) => _attr_input_value($scope, "a", $scope.d, $scope.e && $valueChange$1($scope))); const $input_value = /* @__PURE__ */ _const(3, $input_value__OR__input_valueChange); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js index dcc958d86a..14b4bc3f3e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3747 (min) 1771 (brotli) +// total: 3911 (min) 1833 (brotli) // template.marko: 200 (min) 125 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => { _attr_input_value($scope, "a", $scope.d, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js index 2751eac822..92d9c453db 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8567 (min) 3276 (brotli) +// total: 8733 (min) 3330 (brotli) // tags/my-input.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js index 978edfc99b..7a57a519be 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3719 (min) 1764 (brotli) +// total: 3883 (min) 1827 (brotli) // template.marko: 168 (min) 116 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => { _attr_input_value($scope, "a", $scope.c, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js index a02258bbc3..3fc9db3bb0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13225 (min) 5080 (brotli) +// total: 13393 (min) 5131 (brotli) // template.marko: 466 (min) 219 (brotli) _resume_dynamic_tag(); const $tagselect_content__setup__script = _script("a2", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js index 2a4dc1430c..277fa82dcf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4245 (min) 1931 (brotli) +// total: 4409 (min) 1989 (brotli) // template.marko: 236 (min) 152 (brotli) const $selected = /* @__PURE__ */ _let(3, ($scope) => { _attr_select_value($scope, "a", $scope.d, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js index 78979d28c1..b21dbb9604 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8921 (min) 3856 (brotli) +// total: 9088 (min) 3921 (brotli) // template.marko: 546 (min) 285 (brotli) const $for_content__opt = ($scope, opt) => { _attr($scope.a, "value", opt); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js index ec0cd727f1..563d7ad3e5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 11620 (min) 4370 (brotli) +// total: 11787 (min) 4425 (brotli) // tags/my-select.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js index bba58e63e6..50fb89133c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4226 (min) 1923 (brotli) +// total: 4390 (min) 1982 (brotli) // template.marko: 217 (min) 137 (brotli) const $selected = /* @__PURE__ */ _let(3, ($scope) => { _attr_select_value($scope, "a", $scope.d, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js index 24f044dd03..6cdfdca483 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4015 (min) 1817 (brotli) +// total: 4179 (min) 1880 (brotli) // template.marko: 178 (min) 118 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => { _attr_select_value($scope, "a", $scope.c, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js index 63f93f4873..76013fbcb5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8555 (min) 3273 (brotli) +// total: 8721 (min) 3323 (brotli) // tags/my-textarea.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js index 978edfc99b..7a57a519be 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3719 (min) 1764 (brotli) +// total: 3883 (min) 1827 (brotli) // template.marko: 168 (min) 116 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => { _attr_input_value($scope, "a", $scope.c, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js index 4c5d45a7f7..3e521e3434 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2681 (min) 1384 (brotli) +// total: 2845 (min) 1438 (brotli) // template.marko: 199 (min) 122 (brotli) const $a__OR__b = /* @__PURE__ */ _or(7, ($scope) => _text($scope.e, $scope.f + $scope.g)); const $a = /* @__PURE__ */ _let(5, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js index 3866dcb435..f7556aed60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3200 (min) 1612 (brotli) +// total: 3364 (min) 1680 (brotli) // tags/my-let.marko: 83 (min) 74 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => _return($scope, $scope.d)); function $valueChange($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js index 4be487641c..adf917acab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13155 (min) 5081 (brotli) +// total: 13323 (min) 5140 (brotli) // tags/custom-tag.marko: 225 (min) 153 (brotli) const $x__OR__y = /* @__PURE__ */ _or(9, _script("b0", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.h + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js index c3b27a1aaf..02cc05b50a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13141 (min) 5077 (brotli) +// total: 13309 (min) 5140 (brotli) // tags/custom-tag.marko: 173 (min) 143 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(2); const $input_content__OR__input_name__OR__x = /* @__PURE__ */ _or(8, ($scope) => $dynamicTag($scope, $scope.f, () => ({ diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js index d3f86d755a..01d3b033f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13053 (min) 5048 (brotli) +// total: 13221 (min) 5106 (brotli) // tags/custom-tag.marko: 160 (min) 143 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(2, 0, 0, 1); const $input_content__OR__x = /* @__PURE__ */ _or(7, ($scope) => $dynamicTag($scope, $scope.f, () => [$scope.g])); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js index b49be3091f..cdf7a5eab8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1447 (min) 809 (brotli) +// total: 1611 (min) 869 (brotli) // template.marko: 35 (min) 39 (brotli) const $setup__script = _script("a0", ($scope) => console.log("hi")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js index d99889c9db..a2718d9169 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2843 (min) 1422 (brotli) +// total: 3007 (min) 1485 (brotli) // tags/counter.marko: 164 (min) 127 (brotli) const $x__script = _script("b1", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js index ee2f0ce366..2d08a51a43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1718 (min) 928 (brotli) +// total: 1882 (min) 986 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.b.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js index 92f80bb251..4a158a9824 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2828 (min) 1461 (brotli) +// total: 2992 (min) 1521 (brotli) // tags/child.marko: 136 (min) 111 (brotli) const $input_extra__OR__x = /* @__PURE__ */ _or(6, ($scope) => _return($scope, $scope.f + $scope.e)); const $x__script = _script("b0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js index c8ae06d9ec..e00a0d2a7e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2594 (min) 1346 (brotli) +// total: 2758 (min) 1403 (brotli) // tags/child.marko: 115 (min) 94 (brotli) const $x__script = _script("b0", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js index 4753026c58..996a5216da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1450 (min) 803 (brotli) +// total: 1614 (min) 870 (brotli) // template.marko: 38 (min) 42 (brotli) const $x__OR__y = /* @__PURE__ */ _or(2, _script("a0", ($scope) => console.log($scope.a, $scope.b))); diff --git a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js index f93a91499b..970e529105 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8997 (min) 3724 (brotli) +// total: 9163 (min) 3793 (brotli) // template.marko: 272 (min) 173 (brotli) const $Child_content2__input__script = _script("a1", ($scope) => _attrs_script($scope, "a")); const $if_content__value_class = /* @__PURE__ */ _closure_get(2, ($scope) => _attr_class($scope.a, $scope._._.c), ($scope) => $scope._._); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js index 698238dd89..6f200b57b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12981 (min) 5019 (brotli) +// total: 13148 (min) 5067 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $input_thing_selected = /* @__PURE__ */ _const(5, ($scope) => _attr_class_item($scope.a, "selected", $scope.f)); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js index ea76a75ed3..d14fe704cf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2551 (min) 1339 (brotli) +// total: 2715 (min) 1396 (brotli) // template.marko: 161 (min) 128 (brotli) const $myObj = ($scope, myObj) => _text($scope.a, JSON.stringify(myObj)); const $x__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js index 66cc169170..d54cc8f9d8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2523 (min) 1319 (brotli) +// total: 2687 (min) 1377 (brotli) // template.marko: 133 (min) 113 (brotli) const $MyTag_content__c = ($scope, c) => _text($scope.c, c); const $x__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js index da40a2ce2a..fd90564608 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2523 (min) 1318 (brotli) +// total: 2687 (min) 1376 (brotli) // template.marko: 133 (min) 113 (brotli) const $MyTag_content__number = ($scope, number) => _text($scope.a, number); const $x__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js index e822281ce7..eb4f202d7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6322 (min) 2914 (brotli) +// total: 6488 (min) 2973 (brotli) // template.marko: 276 (min) 193 (brotli) const $MyTag_content__walks = "D l", $MyTag_content__template = "
"; const $if_content__setup = ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js index 3b788bc6f9..e224a1fd35 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5924 (min) 2752 (brotli) +// total: 6090 (min) 2813 (brotli) // template.marko: 271 (min) 193 (brotli) const $MyTag_content__walks = "Db%l", $MyTag_content__template = "
Hello
"; const $MyTag_content__value = ($scope, value) => _text($scope.a, value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js index 792b84b741..5f431afd9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2523 (min) 1318 (brotli) +// total: 2687 (min) 1374 (brotli) // template.marko: 133 (min) 113 (brotli) const $MyTag_content__count = ($scope, count) => _text($scope.b, count); const $count__script = _script("a1", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js index 70eae0b962..28baf2fe6f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2505 (min) 1310 (brotli) +// total: 2669 (min) 1368 (brotli) // template.marko: 115 (min) 95 (brotli) const $MyTag_content__y__script = _script("a1", ($scope) => _on($scope.c, "click", function() { $MyTag_content__y($scope, $scope.h + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js index f1393f35ac..5966cd6fb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4524 (min) 1919 (brotli) +// total: 4688 (min) 1984 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js index f1393f35ac..5966cd6fb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4524 (min) 1919 (brotli) +// total: 4688 (min) 1984 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js index 31d675b81f..772c89100d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7355 (min) 3074 (brotli) +// total: 7521 (min) 3127 (brotli) // tags/child.marko: 62 (min) 53 (brotli) const $valueChange2__script = _script("b1", ($scope) => $scope.d(2)); const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js index f1393f35ac..5966cd6fb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4524 (min) 1919 (brotli) +// total: 4688 (min) 1984 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js index e70d09bd61..bc769116e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7052 (min) 3241 (brotli) +// total: 7218 (min) 3324 (brotli) // tags/store.marko: 182 (min) 112 (brotli) const $list$1 = /* @__PURE__ */ _let(3, ($scope) => _return($scope, { list: $scope.d, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js index a2c732c917..cdc4e0509d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5776 (min) 2656 (brotli) +// total: 5942 (min) 2720 (brotli) // template.marko: 228 (min) 141 (brotli) const $if_content2__setup = ($scope) => _text($scope.a, $scope.$.x); const $if_content__setup = ($scope) => _text($scope.a, $scope.$.x); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js index 658dee9d77..966c31a1a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5576 (min) 2644 (brotli) +// total: 5742 (min) 2697 (brotli) // template.marko: 275 (min) 150 (brotli) _enable_catch(); const $if_content__a = /* @__PURE__ */ _closure_get(2, ($scope) => _text($scope.a, $scope._._.c), ($scope) => $scope._._); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js index bc4bcbbce1..b49f4904f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1405 (min) 781 (brotli) +// total: 1569 (min) 842 (brotli) // template.marko: 63 (min) 67 (brotli) function $bar($scope) { return function(test) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js index 10865d1c6f..0720d66c8c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2982 (min) 1520 (brotli) +// total: 3146 (min) 1576 (brotli) // template.marko: 170 (min) 105 (brotli) const $if_content2__c = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.c, $scope._._.e), ($scope) => $scope._._); const $customtag_content__c = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.c, $scope._.e)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js index a7f338602e..282a03107c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5833 (min) 2632 (brotli) +// total: 5999 (min) 2695 (brotli) // template.marko: 268 (min) 177 (brotli) let sideEffect = 3; const $MyThing_content__count = /* @__PURE__ */ _closure_get(1, ($scope) => _text($scope.a, $scope._.b)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js index c85365c062..b0aa4d51ba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2498 (min) 1310 (brotli) +// total: 2662 (min) 1369 (brotli) // template.marko: 104 (min) 98 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", $scope.c <= 1 ? () => { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js index fae7bb8ae1..980cb36aca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12920 (min) 4999 (brotli) +// total: 13088 (min) 5048 (brotli) // template.marko: 208 (min) 153 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("a0", "body content", "b")); const $tagName__OR__className = /* @__PURE__ */ _or(4, ($scope) => $dynamicTag($scope, $scope.c, () => ({ class: $scope.d }))); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js index de5fa7d0fd..58d8687692 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12793 (min) 4938 (brotli) +// total: 12960 (min) 4998 (brotli) // template.marko: 220 (min) 139 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("a1", "body content", "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js index 1a2e3c7cb3..053e031ceb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13756 (min) 5312 (brotli) +// total: 13924 (min) 5372 (brotli) // tags/custom-tag.marko: 0 (min) 1 (brotli) const $template = "
Child:
"; const $walks = "Db%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js index 6c60649abc..d111f739dd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13581 (min) 5252 (brotli) +// total: 13749 (min) 5296 (brotli) // tags/custom-tag.marko: 0 (min) 1 (brotli) const $template = "
"; const $walks = "D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js index 71418dbdf7..67369be3ef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2783 (min) 1419 (brotli) +// total: 2947 (min) 1480 (brotli) // template.marko: 118 (min) 99 (brotli) const $className__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $className($scope, $scope.c === "A" ? "B" : "A"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js index 3a33b0d4c7..6ae4bace54 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13606 (min) 5267 (brotli) +// total: 13774 (min) 5319 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = "
Id is
"; const $walks = "Db%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js index 3146ed9d65..ae4f1b3c48 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13843 (min) 5341 (brotli) +// total: 14011 (min) 5395 (brotli) // tags/child1.marko: 0 (min) 1 (brotli) const $template$1 = "
Child 1 has
"; const $walks$1 = "Db%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js index 7b30b8d7a1..ea977dab36 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12925 (min) 4998 (brotli) +// total: 13093 (min) 5046 (brotli) // tags/my-tag.marko: 159 (min) 129 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js index 5b04073c2e..8d0cdbbf8e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6072 (min) 2507 (brotli) +// total: 6238 (min) 2569 (brotli) // tags/wrapper.marko: 53 (min) 52 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("b0", "hi", "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js index e72427aeb0..7a6735be70 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13626 (min) 5257 (brotli) +// total: 13794 (min) 5311 (brotli) // tags/custom-tag.marko: 0 (min) 1 (brotli) const $template = "
"; const $walks = "D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js index b64838f4c5..60bbf253f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12769 (min) 4921 (brotli) +// total: 12936 (min) 4972 (brotli) // template.marko: 162 (min) 129 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("a0", "Body Content", "b")); const $x__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js index 5b04073c2e..8d0cdbbf8e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6072 (min) 2507 (brotli) +// total: 6238 (min) 2569 (brotli) // tags/wrapper.marko: 53 (min) 52 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("b0", "hi", "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js index cc379bfe80..3a261dce58 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2697 (min) 1385 (brotli) +// total: 2861 (min) 1439 (brotli) // tags/counter.marko: 164 (min) 127 (brotli) const $x__script = _script("b1", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js index 4a714b11cc..d171d45a46 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3939 (min) 1839 (brotli) +// total: 4103 (min) 1905 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.b.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js index b169429caf..643f1b41f5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1463 (min) 804 (brotli) +// total: 1627 (min) 863 (brotli) // template.marko: 112 (min) 51 (brotli) const $data = _var_resume("a3", ($scope, data1) => {}); const $data2 = _var_resume("a0", ($scope, data2) => {}); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js index aab7b9f9f7..28fc1f4e58 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13032 (min) 5014 (brotli) +// total: 13199 (min) 5065 (brotli) // tags/counter.marko: 100 (min) 85 (brotli) const $template = ""; const $walks = " D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js index 745abddd7c..2191d44273 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6167 (min) 2821 (brotli) +// total: 6333 (min) 2888 (brotli) // template.marko: 256 (min) 164 (brotli) const $if = /* @__PURE__ */ _if(2, "
Hello
", "b"); const $hide__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js index 16a3f42340..591a7acd45 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3031 (min) 1543 (brotli) +// total: 3195 (min) 1598 (brotli) // template.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js index 7f60f6406d..b5ae6a8d20 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2475 (min) 1251 (brotli) +// total: 2639 (min) 1311 (brotli) // template.marko: 128 (min) 95 (brotli) const $setup__script = _script("a0", ($scope) => { $signal($scope, 0).onabort = () => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js index d2001093cd..f0ec1baee6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2736 (min) 1411 (brotli) +// total: 2900 (min) 1459 (brotli) // template.marko: 254 (min) 148 (brotli) const $x__OR__direction = /* @__PURE__ */ _or(6, _script("a0", ($scope) => _on($scope.c, "click", function() { if ($scope.f === "up") $x($scope, $scope.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js index 167bc71ddb..cc1717698d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7884 (min) 3587 (brotli) +// total: 8051 (min) 3652 (brotli) // template.marko: 388 (min) 257 (brotli) const $if_content__last = /* @__PURE__ */ _if_closure(1, 0, ($scope) => _text($scope.a, $scope._.d)); const $if_content__setup = $if_content__last; diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js index 7fa7219d2c..1494abe6af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7232 (min) 3232 (brotli) +// total: 7398 (min) 3292 (brotli) // template.marko: 691 (min) 270 (brotli) function getStringBy() { return "id"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js index 7c08f81437..21991cdebd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6900 (min) 3208 (brotli) +// total: 7066 (min) 3243 (brotli) // template.marko: 359 (min) 215 (brotli) const $for_content__name = ($scope, name) => _text($scope.a, name); const $for_content__description = ($scope, description) => _text($scope.b, description); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js index 5266efbcfe..ac7cb9f735 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6828 (min) 3184 (brotli) +// total: 6994 (min) 3233 (brotli) // template.marko: 188 (min) 151 (brotli) const $for_content__num = /* @__PURE__ */ _for_closure(0, _script("a0", ($scope) => _on($scope.a, "click", function() { $num($scope._, $scope._.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js index f90155848c..a7432f8bc8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6768 (min) 3145 (brotli) +// total: 6934 (min) 3198 (brotli) // template.marko: 190 (min) 143 (brotli) const $for_content__items = /* @__PURE__ */ _for_closure(0, _script("a0", ($scope) => _on($scope.a, "click", function() { $scope._.b.textContent = $scope._.c.join(", "); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js index 3865b80127..c6c4fa3c5a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1837 (min) 973 (brotli) +// total: 2001 (min) 1027 (brotli) // template.marko: 119 (min) 80 (brotli) const $for = /* @__PURE__ */ _for_of(0, "", " b", _script("a0", ($scope) => _on($scope.a, "click", function() { document.getElementById("el").innerHTML = $scope.M === void 0 ? "index missing" : $scope.M; diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js index c9ee5cc543..085b5af68e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6577 (min) 3046 (brotli) +// total: 6743 (min) 3096 (brotli) // template.marko: 185 (min) 146 (brotli) const $for = /* @__PURE__ */ _for_of(0, "
", "b"); const $children__script = _script("a0", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js index 6a7c8b8928..fd03c26f33 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6571 (min) 3042 (brotli) +// total: 6737 (min) 3095 (brotli) // template.marko: 179 (min) 142 (brotli) const $for = /* @__PURE__ */ _for_of(1, "Child", "b"); const $children__script = _script("a0", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js index bd41c97c28..6311d5ee59 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2713 (min) 1393 (brotli) +// total: 2877 (min) 1455 (brotli) // template.marko: 143 (min) 114 (brotli) const $for_content__count = /* @__PURE__ */ _for_closure(0, ($scope) => _text($scope.b, $scope._.d)); const $count__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js index fa89644584..c328ef27c2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6395 (min) 3004 (brotli) +// total: 6561 (min) 3044 (brotli) // template.marko: 162 (min) 144 (brotli) const $for_content2__setup = ($scope) => _text($scope.a, $scope.M); const $for_content2__val = ($scope, val) => _text($scope.b, val); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js index 9f827be647..d624d28318 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1498 (min) 825 (brotli) +// total: 1662 (min) 892 (brotli) // template.marko: 92 (min) 80 (brotli) const $baz2 = /* @__PURE__ */ _const(2, _script("a1", ($scope) => $scope.a.textContent = $scope.c.bar())); function $baz($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js index 67ae1c3512..2c93222df4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1701 (min) 878 (brotli) +// total: 1865 (min) 941 (brotli) // template.marko: 319 (min) 123 (brotli) const $a2 = /* @__PURE__ */ _const(5, _script("a5", ($scope) => $scope.a.textContent = $scope.f.bar() || "missing a")); const $b2 = /* @__PURE__ */ _const(6, _script("a4", ($scope) => $scope.b.textContent = $scope.g.baz() || "missing b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js index dc97f68f3f..98a0d395f7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1797 (min) 959 (brotli) +// total: 1961 (min) 1018 (brotli) // template.marko: 79 (min) 83 (brotli) function updateText(ev) { ev.target.textContent = "after"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js index 1933c608f4..afa87e5b8d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1809 (min) 959 (brotli) +// total: 1973 (min) 1023 (brotli) // template.marko: 97 (min) 80 (brotli) const $onClick3 = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.a, "click", $scope.d))); function $updateText(ev) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js index 0cba204d68..c7c7b7c036 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1809 (min) 958 (brotli) +// total: 1973 (min) 1025 (brotli) // template.marko: 97 (min) 78 (brotli) const $onClick = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.b, "click", $scope.d))); function $updateText(ev) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js index d5238ef0a0..fcda53b2d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6840 (min) 3172 (brotli) +// total: 7006 (min) 3231 (brotli) // template.marko: 254 (min) 180 (brotli) const $for_content__item = ($scope, item) => _text($scope.a, item); const $for_content__$params = ($scope, $params2) => $for_content__item($scope, $params2[0]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js index 46241da1d1..0f810367f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2078 (min) 1083 (brotli) +// total: 2242 (min) 1144 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js index 2873c79cf5..dd20b1ad89 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13445 (min) 5155 (brotli) +// total: 13613 (min) 5217 (brotli) // tags/thing.marko: 0 (min) 1 (brotli) const $template$1 = ""; const $walks = "b%b%c"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js index 471380b71c..827c54b115 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2188 (min) 1122 (brotli) +// total: 2352 (min) 1188 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js index 5e17ec8301..6fb97668e6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2234 (min) 1125 (brotli) +// total: 2398 (min) 1187 (brotli) // tags/child.marko: 44 (min) 48 (brotli) function $_return($scope) { return () => $scope.c; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js index 2b4f7889f2..3fc51e6571 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2145 (min) 1108 (brotli) +// total: 2309 (min) 1173 (brotli) // tags/child.marko: 30 (min) 34 (brotli) const $input__script = _script("b0", ($scope) => $scope.b.action()); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js index ff24ca40bd..adba96c9b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2022 (min) 1055 (brotli) +// total: 2186 (min) 1111 (brotli) // tags/thing.marko: 21 (min) 25 (brotli) const $input_value__script = _script("c0", ($scope) => $scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js index a664ca03b2..b641bda9bd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2194 (min) 1113 (brotli) +// total: 2358 (min) 1177 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js index 7c91689d6c..c58715bff7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14117 (min) 5414 (brotli) +// total: 14285 (min) 5469 (brotli) // tags/child.marko: 59 (min) 63 (brotli) const $template$1 = "
"; const $walks$1 = " b"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js index aba14ce37e..f87b2d7bd3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2188 (min) 1122 (brotli) +// total: 2352 (min) 1188 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js index 3589e04757..abd4459380 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2194 (min) 1113 (brotli) +// total: 2358 (min) 1177 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js index f0201d60b0..da70ab5715 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1457 (min) 804 (brotli) +// total: 1621 (min) 869 (brotli) // template.marko: 45 (min) 49 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.innerHTML = "Hello World"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js index e989684d8f..e9b199042e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13186 (min) 5060 (brotli) +// total: 13354 (min) 5116 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = ""; const $walks = "b%b%c"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js index 125289ef69..d3216167f0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2024 (min) 1051 (brotli) +// total: 2188 (min) 1106 (brotli) // template.marko: 236 (min) 141 (brotli) const $el3_getter = _hoist_resume("a0", 0, "Aa", "Ac"); const $el2_getter = _hoist(0, "Ab"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js index 54472fc471..2c0ec26046 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2095 (min) 1059 (brotli) +// total: 2259 (min) 1117 (brotli) // template.marko: 333 (min) 149 (brotli) const $el_getter = _hoist_resume("a0", 0, "Aa", "Ad"); const $for_content__$el_getter = _hoist_resume("a1", 0, "Aa"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js index 855bfb4173..22b0db4c82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1617 (min) 864 (brotli) +// total: 1781 (min) 920 (brotli) // tags/child.marko: 30 (min) 34 (brotli) const $input__script = _script("b0", ($scope) => $scope.b.action()); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js index b87d854cb2..0b11741835 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1869 (min) 984 (brotli) +// total: 2033 (min) 1046 (brotli) // tags/child.marko: 49 (min) 53 (brotli) const $input__script = _script("b0", ($scope) => $scope.b.value().innerHTML = "mounted"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js index 5c42fe5477..1e0efc927b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2074 (min) 1078 (brotli) +// total: 2238 (min) 1135 (brotli) // tags/child.marko: 67 (min) 71 (brotli) let id = 0; const $input__script = _script("b0", ($scope) => $scope.b.value()?.classList.add(`child${id++}`)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js index 477a92199d..9773c262b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1846 (min) 986 (brotli) +// total: 2010 (min) 1046 (brotli) // template.marko: 136 (min) 86 (brotli) const $if_content2__hoist3_getter = _hoist_resume("a3", 0); const $hoist1_getter = _hoist_resume("a2", 4); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js index 1ad952ccb6..83aa500a9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2019 (min) 1055 (brotli) +// total: 2183 (min) 1111 (brotli) // tags/child.marko: 39 (min) 43 (brotli) const $input__script = _script("b0", ($scope) => $scope.a.innerHTML = $scope.c.y()); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js index 10eeb656d4..03d2ca57b8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2541 (min) 1327 (brotli) +// total: 2705 (min) 1384 (brotli) // template.marko: 172 (min) 124 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.d + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js index 6fc36ad979..d4bef19204 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2299 (min) 1212 (brotli) +// total: 2463 (min) 1276 (brotli) // tags/parent-el.marko: 82 (min) 74 (brotli) const $tagName = /* @__PURE__ */ _let(1, ($scope) => _return($scope, $scope.b)); const $setup__script = _script("b0", ($scope) => $tagName($scope, $scope.a.parentElement.tagName)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js index 245cfb5ece..a281f0bb94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8663 (min) 3644 (brotli) +// total: 8829 (min) 3704 (brotli) // template.marko: 180 (min) 145 (brotli) const $if_content__setup = ($scope) => _attr_nonce($scope, "a"); const $spreadAttrs__script = _script("a1", ($scope) => _attrs_script($scope, "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js index d15e62e9ef..3ab586f66e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2642 (min) 1373 (brotli) +// total: 2806 (min) 1434 (brotli) // template.marko: 203 (min) 147 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js index 0b4eccf982..0c8d55e77d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8652 (min) 3631 (brotli) +// total: 8818 (min) 3694 (brotli) // template.marko: 169 (min) 133 (brotli) const $if_content__setup = ($scope) => _attr_nonce($scope, "a"); const $spreadAttrs__script = _script("a1", ($scope) => _attrs_script($scope, "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js index f47a2237e4..fa310f49c8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2545 (min) 1329 (brotli) +// total: 2709 (min) 1392 (brotli) // template.marko: 152 (min) 126 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js index b9f5e4566c..6707d495aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2915 (min) 1483 (brotli) +// total: 3079 (min) 1541 (brotli) // template.marko: 229 (min) 156 (brotli) const $sometimesBar = ($scope, sometimesBar) => _attr($scope.c, "id", sometimesBar); const $bar__OR__baz = /* @__PURE__ */ _or(6, _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js index db11eb91a1..231e179619 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5575 (min) 2595 (brotli) +// total: 5741 (min) 2660 (brotli) // template.marko: 113 (min) 99 (brotli) const $if = /* @__PURE__ */ _if(1, "hi", "b"); const $show__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js index 0939b17476..4d294d197c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5738 (min) 2653 (brotli) +// total: 5904 (min) 2720 (brotli) // tags/child.marko: 213 (min) 172 (brotli) const $if_content__text = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.c)); const $if = /* @__PURE__ */ _if(0, "
", "D l", $if_content__text); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js index ef5b98fba1..7d35769d8e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5710 (min) 2637 (brotli) +// total: 5876 (min) 2696 (brotli) // template.marko: 166 (min) 129 (brotli) const $if = /* @__PURE__ */ _if(3, 0, 0, _script("a0", ($scope) => $scope._.a.textContent = "Hit")); const $count__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js index 576f83ea30..d9a2c23072 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2808 (min) 1437 (brotli) +// total: 2972 (min) 1495 (brotli) // template.marko: 150 (min) 115 (brotli) const $for_content__selected = /* @__PURE__ */ _for_closure(0, ($scope) => _attr($scope.a, "data-selected", $scope._.b === $scope.M)); const $selected__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js index f970dba392..c66d23f102 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2795 (min) 1429 (brotli) +// total: 2959 (min) 1481 (brotli) // template.marko: 141 (min) 105 (brotli) const $for_content__selected = /* @__PURE__ */ _for_closure(0, ($scope) => _attr($scope.a, "selected", $scope._.b === $scope.M)); const $selected = /* @__PURE__ */ _let(1, $for_content__selected); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js index a6d3b536fe..41955db0a7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2602 (min) 1355 (brotli) +// total: 2766 (min) 1417 (brotli) // template.marko: 110 (min) 93 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.f)); const $value = /* @__PURE__ */ _let(5, $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js index a6d3b536fe..41955db0a7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2602 (min) 1355 (brotli) +// total: 2766 (min) 1417 (brotli) // template.marko: 110 (min) 93 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.f)); const $value = /* @__PURE__ */ _let(5, $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js index 977219b7da..7d087f3130 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6124 (min) 2818 (brotli) +// total: 6290 (min) 2891 (brotli) // template.marko: 259 (min) 181 (brotli) const $if_content2__input_name = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.a, $scope._._.e || "Fallback"), ($scope) => $scope._._); const $if_content__if = /* @__PURE__ */ _if(0, "
", "D l", $if_content2__input_name); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js index 72580b56de..cfd50dec14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5970 (min) 2749 (brotli) +// total: 6136 (min) 2812 (brotli) // tags/test.marko: 0 (min) 1 (brotli) const $Tag_content__walks = "b%c", $Tag_content__template = ""; const $template = /* @__PURE__ */ ((_w0) => `${_w0}`)($Tag_content__template); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js index 295b2952ad..91e5adc317 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1803 (min) 964 (brotli) +// total: 1967 (min) 1029 (brotli) // template.marko: 85 (min) 72 (brotli) const $MyButton_content__input_message = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.a, "click", function() { $scope._.a.textContent += `[onClick(${$scope.d})]`; diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js index 115cc9e0c4..f6d38aedf5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4548 (min) 1935 (brotli) +// total: 4712 (min) 1987 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $htmlInput__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js index aec27a5cb1..8b9c67c1bd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1546 (min) 836 (brotli) +// total: 1710 (min) 898 (brotli) // template.marko: 140 (min) 88 (brotli) const $Child_content__a__script = _script("a2", ($scope) => { if ($scope.e !== "a") throw new Error("did not serialize a"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js index 6acdfefa3c..1a4ab68d50 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2623 (min) 1370 (brotli) +// total: 2787 (min) 1426 (brotli) // template.marko: 165 (min) 129 (brotli) const $user = /* @__PURE__ */ _let(3, ($scope) => $user_id($scope, $scope.d?.id)); const $index__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js index c6d2f7163f..721e3d1b28 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7232 (min) 3334 (brotli) +// total: 7399 (min) 3392 (brotli) // tags/store.marko: 182 (min) 112 (brotli) const $list$1 = /* @__PURE__ */ _let(3, ($scope) => _return($scope, { list: $scope.d, diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js index b88e42adf5..542a1123f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3144 (min) 1602 (brotli) +// total: 3308 (min) 1660 (brotli) // tags/let-global.marko: 234 (min) 178 (brotli) const subsByKey = {}; const $value = /* @__PURE__ */ _let(3, ($scope) => _return($scope, $scope.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js index 5acac8e2ca..241bd9390b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2871 (min) 1479 (brotli) +// total: 3035 (min) 1540 (brotli) // template.marko: 259 (min) 181 (brotli) const $Let_content__internal = /* @__PURE__ */ _let(0, ($scope) => _return($scope, $scope.a)); const $a__OR__b__script = _script("a3", ($scope) => _on($scope.c, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js index 3cb64e2bbf..c2152de44c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3102 (min) 1532 (brotli) +// total: 3266 (min) 1589 (brotli) // tags/child.marko: 291 (min) 140 (brotli) const $state__script = _script("b2", ($scope) => _on($scope.a, "click", function() { $state($scope, $scope.o + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js index 0b4c173448..52b0fe6cb9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2758 (min) 1417 (brotli) +// total: 2922 (min) 1472 (brotli) // template.marko: 287 (min) 173 (brotli) const $y__script = _script("a2", ($scope) => _on($scope.a, "click", function() { $y($scope, $scope.h + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js index 9baffb48a6..96d654a436 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2701 (min) 1397 (brotli) +// total: 2865 (min) 1453 (brotli) // template.marko: 219 (min) 149 (brotli) const $y__script = _script("a1", ($scope) => _on($scope.a, "click", function() { $y($scope, $scope.g + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js index 5fed63471c..402f2e9994 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2584 (min) 1342 (brotli) +// total: 2748 (min) 1402 (brotli) // template.marko: 203 (min) 135 (brotli) const $y__script = _script("a1", ($scope) => _on($scope.a, "click", function() { $y($scope, $scope.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js index f427c68c9a..a512a1172c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2488 (min) 1306 (brotli) +// total: 2652 (min) 1362 (brotli) // template.marko: 94 (min) 87 (brotli) const $b__script = _script("a0", ($scope) => _on($scope.a, "click", () => $b($scope, $scope.g + 1) - 1)); const $b = /* @__PURE__ */ _let(6, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js index fa9b11d82b..7e3564e737 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2203 (min) 1176 (brotli) +// total: 2367 (min) 1239 (brotli) // template.marko: 106 (min) 97 (brotli) const $x__script = _script("a0", ($scope) => { $y($scope, $scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js index c1225edd94..d40b3efadd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2782 (min) 1429 (brotli) +// total: 2946 (min) 1490 (brotli) // template.marko: 237 (min) 151 (brotli) const $a = ($scope, a) => _text($scope.e, a); const $y__OR__z = /* @__PURE__ */ _or(8, ($scope) => $a($scope, $scope.g + $scope.h)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js index 07de15150b..0126e094a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2629 (min) 1369 (brotli) +// total: 2793 (min) 1424 (brotli) // template.marko: 141 (min) 109 (brotli) const $x__OR__y = /* @__PURE__ */ _or(5, _script("a0", ($scope) => _on($scope.a, "click", () => $x($scope, $y($scope, $scope.d + $scope.e))))); const $x = /* @__PURE__ */ _let(3, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js index 8eabb8730e..4293be61ce 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2174 (min) 1167 (brotli) +// total: 2338 (min) 1227 (brotli) // template.marko: 70 (min) 65 (brotli) const $x = /* @__PURE__ */ _let(1, ($scope) => _text($scope.a, $scope.b)); const $setup__script = _script("a0", ($scope) => $x($scope, "Client Only")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js index cf1e59020c..c6e8f78ed8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1458 (min) 805 (brotli) +// total: 1622 (min) 872 (brotli) // template.marko: 46 (min) 50 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.classList.add("mounted")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.debug.js new file mode 100644 index 0000000000..08d3a821d8 --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.debug.js @@ -0,0 +1,21 @@ +// template.marko +const $template = ""; +const $walks = "b b"; +const $count__script = _script("__tests__/template.marko_0_count", ($scope) => { + _lifecycle($scope, { + onMount: function() { + document.getElementById("log").textContent += "mount,"; + }, + onUpdate: function() { + document.getElementById("log").textContent += "update" + $scope.count + ","; + } + }); + _on($scope["#button/0"], "click", function() { + $count($scope, $scope.count + 1); + }); +}); +const $count = /* @__PURE__ */ _let("count/1", $count__script); +function $setup($scope) { + $count($scope, 0); +} +var template_default = /* @__PURE__ */ _template("__tests__/template.marko", $template, "b b", $setup); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js new file mode 100644 index 0000000000..fd0ffff869 --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js @@ -0,0 +1,15 @@ +// total: 2944 (min) 1466 (brotli) +// template.marko: 246 (min) 124 (brotli) +const $count = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { + _lifecycle($scope, { + onMount: function() { + document.getElementById("log").textContent += "mount,"; + }, + onUpdate: function() { + document.getElementById("log").textContent += "update" + $scope.b + ","; + } + }); + _on($scope.a, "click", function() { + $count($scope, $scope.b + 1); + }); +})); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.debug.js new file mode 100644 index 0000000000..ec45222d23 --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.debug.js @@ -0,0 +1,10 @@ +// template.marko +var template_default = _template("__tests__/template.marko", (input) => { + _scope_reason(); + const $scope0_id = _scope_id(); + let count = 0; + _html(`${_el_resume($scope0_id, "#button/0")}`); + _script($scope0_id, "__tests__/template.marko_0_count"); + writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _resume_branch($scope0_id); +}, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.js new file mode 100644 index 0000000000..ace565ebbc --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/html.bundle.js @@ -0,0 +1,10 @@ +// template.marko +var template_default = _template("a", (input) => { + _scope_reason(); + const $scope0_id = _scope_id(); + let count = 0; + _html(`${_el_resume($scope0_id, "a")}`); + _script($scope0_id, "a0"); + writeScope($scope0_id, { b: count }); + _resume_branch($scope0_id); +}, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.debug.md b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.debug.md new file mode 100644 index 0000000000..5d34e0fbf6 --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.debug.md @@ -0,0 +1,115 @@ +# Render +```html + + mount, + + +``` + +# Update +```js +container.querySelector("#inc")?.click(); +``` +```html + + mount,update1, + + +``` +## Change +``` +REMOVE: #log::text("mount,") +INSERT: #log::text("mount,update1,") +``` + +# Update +```js +const win = container.ownerDocument.defaultView; +win.dispatchEvent(new win.Event("pagehide")); +``` +```html + + mount,update1, + + +``` + +# Update +```js +container.querySelector("#inc")?.click(); +``` +```html + + mount,update1, + + +``` + +# Update +```js +const win = container.ownerDocument.defaultView; +win.dispatchEvent(new win.Event("pageshow")); +``` +```html + + mount,update1,update2, + + +``` +## Change +``` +REMOVE: #log::text("mount,update1,") +INSERT: #log::text("mount,update1,update2,") +``` + +# Update +```js +container.querySelector("#inc")?.click(); +``` +```html + + mount,update1,update2,update3, + + +``` +## Change +``` +REMOVE: #log::text("mount,update1,update2,") +INSERT: #log::text("mount,update1,update2,update3,") +``` diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.md b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.md new file mode 100644 index 0000000000..5d34e0fbf6 --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/render.md @@ -0,0 +1,115 @@ +# Render +```html + + mount, + + +``` + +# Update +```js +container.querySelector("#inc")?.click(); +``` +```html + + mount,update1, + + +``` +## Change +``` +REMOVE: #log::text("mount,") +INSERT: #log::text("mount,update1,") +``` + +# Update +```js +const win = container.ownerDocument.defaultView; +win.dispatchEvent(new win.Event("pagehide")); +``` +```html + + mount,update1, + + +``` + +# Update +```js +container.querySelector("#inc")?.click(); +``` +```html + + mount,update1, + + +``` + +# Update +```js +const win = container.ownerDocument.defaultView; +win.dispatchEvent(new win.Event("pageshow")); +``` +```html + + mount,update1,update2, + + +``` +## Change +``` +REMOVE: #log::text("mount,update1,") +INSERT: #log::text("mount,update1,update2,") +``` + +# Update +```js +container.querySelector("#inc")?.click(); +``` +```html + + mount,update1,update2,update3, + + +``` +## Change +``` +REMOVE: #log::text("mount,update1,update2,") +INSERT: #log::text("mount,update1,update2,update3,") +``` diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.debug.html new file mode 100644 index 0000000000..5b11592cdb --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.debug.html @@ -0,0 +1,10 @@ + + diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.html new file mode 100644 index 0000000000..57025ad92b --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/writes.html @@ -0,0 +1,9 @@ + + + diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/template.marko b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/template.marko new file mode 100644 index 0000000000..3d667ad20e --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/template.marko @@ -0,0 +1,7 @@ + + + ++ diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/test.ts b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/test.ts new file mode 100644 index 0000000000..7133da3b2b --- /dev/null +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/test.ts @@ -0,0 +1,33 @@ +import type { TestConfig } from "../../main.test"; + +function inc(container: Element) { + container.querySelector("#inc")?.click(); +} + +// Simulates the browser firing pagehide (tab closed / navigated away). +// Uses win.Event (the JSDOM Event constructor) rather than the global Event, +// because JSDOM's dispatchEvent rejects Node.js native Event instances. +// Uses a plain Event because JSDOM does not implement PageTransitionEvent, +// and our listener does not inspect event.persisted. +function pagehide(container: Element) { + const win = container.ownerDocument.defaultView!; + win.dispatchEvent(new (win as any).Event("pagehide")); +} + +// Simulates BFCache restore (browser fires pageshow after returning to a +// frozen page). +function pageshow(container: Element) { + const win = container.ownerDocument.defaultView!; + win.dispatchEvent(new (win as any).Event("pageshow")); +} + +export const config: TestConfig = { + steps: [ + {}, // initial render – onMount fires → log: "mount," + inc, // normal update – onUpdate fires → log: "mount,update," + pagehide, // tab closes: isUnloading = true + inc, // run() returns early – onUpdate suppressed → log unchanged + pageshow, // BFCache restore: isUnloading = false + inc, // run() resumes – onUpdate fires → log: "mount,update,update," + ], +}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js index 71f8b591de..17aa0e57eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2838 (min) 1454 (brotli) +// total: 3002 (min) 1512 (brotli) // template.marko: 227 (min) 145 (brotli) const $x__script = _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js index 7980edf421..2fbdc10d88 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6268 (min) 2817 (brotli) +// total: 6434 (min) 2878 (brotli) // template.marko: 483 (min) 204 (brotli) const $if_content__x = /* @__PURE__ */ _if_closure(0, 0, _script("a0", ($scope) => _lifecycle($scope, { onMount: function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js index d220a659a7..22a5969c3b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2462 (min) 1300 (brotli) +// total: 2626 (min) 1361 (brotli) // template.marko: 134 (min) 108 (brotli) const $x = /* @__PURE__ */ _let(1, ($scope) => _text($scope.a, $scope.b)); const $setup__script = _script("a0", ($scope) => _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js index 5b81baec83..f68ddaca0a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2766 (min) 1417 (brotli) +// total: 2930 (min) 1477 (brotli) // template.marko: 232 (min) 142 (brotli) const $x = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js index c430e7a8ce..642407f37a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2779 (min) 1399 (brotli) +// total: 2943 (min) 1462 (brotli) // template.marko: 245 (min) 121 (brotli) const $x = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js index 0e641474fe..08724fa071 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1447 (min) 799 (brotli) +// total: 1611 (min) 864 (brotli) // template.marko: 35 (min) 39 (brotli) const $item_content__item__script = _script("a0", ($scope) => $scope.a.innerHTML = $scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js index b2871b1c4a..59329c9198 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2228 (min) 1190 (brotli) +// total: 2392 (min) 1249 (brotli) // template.marko: 124 (min) 93 (brotli) const $B_content__value_length = ($scope, value_length) => $A_content__value($scope.a, value_length); const $B_content__tag_input_value = ($scope, value) => $B_content__value_length($scope, value?.length); diff --git a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js index 4e0785b103..8f674ee1bc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2162 (min) 1166 (brotli) +// total: 2326 (min) 1221 (brotli) // template.marko: 58 (min) 57 (brotli) const $x = /* @__PURE__ */ _let(1, ($scope) => _text($scope.a, $scope.b)); const $setup__script = _script("a0", ($scope) => $x($scope, 2)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js index ce0fb5c8ba..d0b4d0d5ab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2893 (min) 1471 (brotli) +// total: 3057 (min) 1530 (brotli) // template.marko: 144 (min) 130 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js index 6c0cb66236..138bf533d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3997 (min) 1903 (brotli) +// total: 4163 (min) 1963 (brotli) // template.marko: 302 (min) 170 (brotli) const $count__OR__$valueChange = /* @__PURE__ */ _or(5, ($scope) => { _attr_input_value($scope, "b", $scope.d, $scope.e); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js index 56f81a0c21..70330f375c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2961 (min) 1486 (brotli) +// total: 3125 (min) 1546 (brotli) // tags/2counters.marko: 196 (min) 123 (brotli) const $count__script = _script("b1", ($scope) => _on($scope.a, "click", function() { $count$1($scope, $scope.m + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js index c193d6b03b..c1e9960684 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13592 (min) 5226 (brotli) +// total: 13760 (min) 5288 (brotli) // template.marko: 623 (min) 305 (brotli) const $Child_content2 = _content_resume("a1", "Hi", "b"); const $Child_content = _content_resume("a0", "Hi", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js index 68df7b70af..716228027b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14105 (min) 5492 (brotli) +// total: 14273 (min) 5551 (brotli) // template.marko: 390 (min) 236 (brotli) const $item_content = /* @__PURE__ */ _content_closures(_content_resume("a2", " ", " b"), { 4($scope) { _text($scope.a, $scope.e); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js index 5eb622a147..f13aed2950 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1575 (min) 871 (brotli) +// total: 1739 (min) 935 (brotli) // template.marko: 64 (min) 64 (brotli) const $btn_getter = _el("a0", 0); const $setup__script = _script("a1", ($scope) => $btn_getter($scope)().textContent = "after"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js index 65e4c7056b..98d42d3f37 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1455 (min) 803 (brotli) +// total: 1619 (min) 869 (brotli) // template.marko: 43 (min) 47 (brotli) const $if = /* @__PURE__ */ _if(1, 0, 0, _script("a0", ($scope) => $scope._.a.textContent = "hello")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js index 217d863986..a78bf14bea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1566 (min) 865 (brotli) +// total: 1730 (min) 926 (brotli) // tags/hello-setter.marko: 43 (min) 47 (brotli) const $el__script = _script("b0", ($scope) => $scope.c().textContent = "hello"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js index 896e9b0bb5..dc87fc1f19 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1453 (min) 801 (brotli) +// total: 1617 (min) 868 (brotli) // template.marko: 41 (min) 45 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.textContent = "hello"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js index de2648cbeb..28ab8e3820 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6203 (min) 2553 (brotli) +// total: 6369 (min) 2608 (brotli) // tags/my-div.marko: 205 (min) 82 (brotli) const $CustomContent_content = _content_resume("b0", "Custom content", "b"); const $input__OR__CustomContent_content__script = _script("b1", ($scope) => _attrs_script($scope, "f")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js index 6cc53e3619..038853db65 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1458 (min) 804 (brotli) +// total: 1622 (min) 872 (brotli) // template.marko: 46 (min) 50 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.innerHTML += "Hello World"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js index 516e0f8a62..be06a9f848 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2548 (min) 1327 (brotli) +// total: 2712 (min) 1384 (brotli) // template.marko: 168 (min) 126 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $lastCount2($scope, $lastCount($scope, $clickCount($scope, $scope.e + 1) - 1)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js index 0ac23d2cb6..6f1cd583f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8257 (min) 3747 (brotli) +// total: 8424 (min) 3802 (brotli) // template.marko: 610 (min) 339 (brotli) const $else_content__count = /* @__PURE__ */ _if_closure(0, 1, ($scope) => _text($scope.b, $scope._.c)); const $else_content__setup__script = _script("a1", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js index eee6e602f2..dd695f150a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2021 (min) 1071 (brotli) +// total: 2185 (min) 1134 (brotli) // tags/child.marko: 89 (min) 93 (brotli) const $input__OR__x = /* @__PURE__ */ _or(6, _script("b1", ($scope) => $scope.d.output().innerHTML = $scope.f)); const $x = _var_resume("b0", /* @__PURE__ */ _const(5, $input__OR__x)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js index eee6e602f2..dd695f150a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2021 (min) 1071 (brotli) +// total: 2185 (min) 1134 (brotli) // tags/child.marko: 89 (min) 93 (brotli) const $input__OR__x = /* @__PURE__ */ _or(6, _script("b1", ($scope) => $scope.d.output().innerHTML = $scope.f)); const $x = _var_resume("b0", /* @__PURE__ */ _const(5, $input__OR__x)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js index c0a6fd1b2c..45145ccef3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3443 (min) 1700 (brotli) +// total: 3609 (min) 1751 (brotli) // template.marko: 468 (min) 214 (brotli) const $ChildB_content__$pattern = ($scope, $pattern2) => $ChildB_content__$bar($scope, $pattern2.bar); const $ChildB_content__count__OR__$foo = /* @__PURE__ */ _or(10, ($scope) => $ChildB_content__$pattern($scope, void 0 !== $scope.g ? $scope.g : { bar: $scope._.h + 2 })); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js index 27c2148af7..234ca0c667 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5482 (min) 2558 (brotli) +// total: 5648 (min) 2617 (brotli) // template.marko: 132 (min) 119 (brotli) const $if_content__mounted = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.b && "C")); const $if = /* @__PURE__ */ _if(0, "ABD", "b%c", $if_content__mounted); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js index 69520b31d5..ab4bc1fd94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6178 (min) 2551 (brotli) +// total: 6344 (min) 2609 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js index 4458ece6ea..49948cf441 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2512 (min) 1315 (brotli) +// total: 2676 (min) 1374 (brotli) // template.marko: 118 (min) 99 (brotli) const $double = ($scope, double) => _text($scope.b, double); const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js index 7614868ac0..682f145c07 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2528 (min) 1317 (brotli) +// total: 2692 (min) 1375 (brotli) // template.marko: 134 (min) 104 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $scope.c.innerHTML = $clickCount($scope, $scope.e + 1) - 1; diff --git a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js index c295da372a..fc4d63d1e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2595 (min) 1326 (brotli) +// total: 2759 (min) 1382 (brotli) // template.marko: 213 (min) 112 (brotli) const $count__script = _script("a0", ($scope) => { _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js index 1a509e9947..a43f0ae2b5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1663 (min) 905 (brotli) +// total: 1827 (min) 964 (brotli) // template.marko: 80 (min) 84 (brotli) const $Tag_content2 = /* @__PURE__ */ _content("a2", 0, 0, /* @__PURE__ */ _closure_get(2, _script("a1", ($scope) => console.log(_assert_init($scope._, "c"))))); const $name = _var_resume("a3", /* @__PURE__ */ _const(2)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js index 6e5ec0ac3c..3976283eff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4524 (min) 1919 (brotli) +// total: 4688 (min) 1984 (brotli) // template.marko: 38 (min) 42 (brotli) const $if_content__rest__script = _script("a0", ($scope) => _attrs_script($scope, "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js index 344f1d8176..f9b67629ee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7407 (min) 3407 (brotli) +// total: 7574 (min) 3475 (brotli) // template.marko: 272 (min) 195 (brotli) const $for_content__if = /* @__PURE__ */ _if(0, "
b
", "b"); const $for_content__items_length = /* @__PURE__ */ _for_closure(0, ($scope) => $for_content__if($scope, $scope._.f > 1 ? 0 : 1)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js index 7edceb2541..691cff985b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2558 (min) 1326 (brotli) +// total: 2722 (min) 1381 (brotli) // tags/setter.marko: 56 (min) 60 (brotli) const $input_value__OR__setter = /* @__PURE__ */ _or(5, ($scope) => _return($scope, ($scope.d, $scope.e))); const $input_value = /* @__PURE__ */ _const(3, $input_value__OR__setter); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js index 3866dcb435..f7556aed60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3200 (min) 1612 (brotli) +// total: 3364 (min) 1680 (brotli) // tags/my-let.marko: 83 (min) 74 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => _return($scope, $scope.d)); function $valueChange($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js index 613fd058ff..fa025620a6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1670 (min) 911 (brotli) +// total: 1834 (min) 979 (brotli) // tags/getter.marko: 43 (min) 47 (brotli) function $getter() { return "hello"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js index 7a6b49192e..d7b4675d96 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3133 (min) 1540 (brotli) +// total: 3297 (min) 1599 (brotli) // template.marko: 598 (min) 241 (brotli) const $Twice_content__value__OR__call = /* @__PURE__ */ _or(4, ($scope) => _return($scope, $_return2($scope))); const $Twice_content__call = /* @__PURE__ */ _let(3, $Twice_content__value__OR__call); diff --git a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js index 04b7efd197..399f7e5f60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2584 (min) 1341 (brotli) +// total: 2748 (min) 1401 (brotli) // template.marko: 194 (min) 131 (brotli) function createWrapper(a) { return { a }; diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js index ec24ba1857..cc9adbd430 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1620 (min) 871 (brotli) +// total: 1784 (min) 935 (brotli) // template.marko: 116 (min) 81 (brotli) const $setup__script = _script("a0", ($scope) => { { diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js index 1205d6e92a..6e8541b933 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1587 (min) 863 (brotli) +// total: 1751 (min) 927 (brotli) // template.marko: 181 (min) 117 (brotli) const $setText2 = /* @__PURE__ */ _const(1, _script("a1", ($scope) => $scope.b())); function $setText($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js index 66230cad3e..8bb9cc5b94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1476 (min) 815 (brotli) +// total: 1640 (min) 879 (brotli) // template.marko: 64 (min) 58 (brotli) const $x = /* @__PURE__ */ _let(0, _script("a0", ($scope) => document.getElementById("ref").textContent = $scope.a)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js index a5b09d5dd2..d2bdc5146b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2578 (min) 1342 (brotli) +// total: 2742 (min) 1405 (brotli) // template.marko: 184 (min) 133 (brotli) const $sum = ($scope, sum) => _text($scope.b, sum()); const $items__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js index 2c1fb82ca3..0a8576607c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1788 (min) 949 (brotli) +// total: 1952 (min) 1011 (brotli) // template.marko: 70 (min) 71 (brotli) const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $scope.a.innerHTML = "clicked"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js index 72a32b0250..cd625d5c19 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1497 (min) 818 (brotli) +// total: 1661 (min) 882 (brotli) // template.marko: 85 (min) 63 (brotli) const $promise = /* @__PURE__ */ _const(0, _script("a0", ($scope) => (async () => { document.getElementById("ref").textContent = await $scope.a; diff --git a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js index b58bd07aa8..a97a5e407c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2733 (min) 1366 (brotli) +// total: 2897 (min) 1427 (brotli) // template.marko: 384 (min) 156 (brotli) const $count4__script = _script("a3", ($scope) => _on($scope.a, "click", function() { $count4($scope, $scope.i + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js index 83906c7dde..ecbe4dfb8e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3052 (min) 1440 (brotli) +// total: 3216 (min) 1497 (brotli) // tags/child.marko: 58 (min) 62 (brotli) const $input_option__script = _script("b0", ($scope) => $scope.a.innerHTML = Object.keys($scope.d).join(",")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js index ab6735175c..752a820cbf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6377 (min) 2610 (brotli) +// total: 6543 (min) 2673 (brotli) // template.marko: 349 (min) 164 (brotli) const $MyButton_content2 = _content_resume("a5", "Click Me", "b"); const $MyButton_content__input_onClick = /* @__PURE__ */ _const(3, _script("a4", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js index 45d8637b8a..174d77bac5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6152 (min) 2535 (brotli) +// total: 6318 (min) 2593 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $for_content__option__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js index 34d9d16ce1..7cc040a618 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6152 (min) 2533 (brotli) +// total: 6318 (min) 2592 (brotli) // template.marko: 136 (min) 79 (brotli) const $option_content3 = _content_resume("a5", "Three", "b"); const $option_content2 = _content_resume("a4", "Two", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js index 7140505a18..b2ec0d3d8b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6148 (min) 2525 (brotli) +// total: 6314 (min) 2587 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $input_class__OR__rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js index 2c3f9c088d..75c5952c6a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4524 (min) 1919 (brotli) +// total: 4688 (min) 1984 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $input_class__OR__rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js index 9f4de9b28a..29878fb00d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14269 (min) 5639 (brotli) +// total: 14437 (min) 5685 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $template = ""; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js index 8e600fa0ed..7eb6a35987 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4573 (min) 1934 (brotli) +// total: 4737 (min) 1989 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $input_class__OR__rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js index e78aaf513e..4f6a828e89 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4574 (min) 1948 (brotli) +// total: 4738 (min) 1998 (brotli) // template.marko: 94 (min) 81 (brotli) const $rest__script = _script("a1", ($scope) => _attrs_script($scope, "a")); function $onClick(_, el) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js index 90b8ca7ed2..09d246c101 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13091 (min) 5058 (brotli) +// total: 13259 (min) 5120 (brotli) // tags/consumer.marko: 175 (min) 131 (brotli) const $if_content__dynamicTag = /* @__PURE__ */ _dynamic_tag(0); const $if_content__input_content = /* @__PURE__ */ _if_closure(1, 0, ($scope) => $if_content__dynamicTag($scope, $scope._.e)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js index d4608ead61..b325918e7f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1779 (min) 950 (brotli) +// total: 1943 (min) 1011 (brotli) // tags/outer.marko: 61 (min) 65 (brotli) const $inner_content__setup__script = _script("c0", ($scope) => _on($scope.a, "click", function() { this.doThing(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js index 94fa22974b..4911b0d01e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2494 (min) 1306 (brotli) +// total: 2658 (min) 1364 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js index 76cb2e67f1..609d9ac8e6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2513 (min) 1318 (brotli) +// total: 2677 (min) 1376 (brotli) // template.marko: 134 (min) 111 (brotli) const $open__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $open($scope, !$scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js index 2a0e2ba4ea..7ac515e7ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13442 (min) 5208 (brotli) +// total: 13610 (min) 5265 (brotli) // template.marko: 313 (min) 215 (brotli) const $Foo_content2__dynamicTag = /* @__PURE__ */ _dynamic_tag(0, 0, 0, 1); const $Foo_content2__input_content__OR__input_value = /* @__PURE__ */ _or(5, ($scope) => $Foo_content2__dynamicTag($scope, $scope.d, () => [$scope.e])); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js index d5f98c6d39..b4e19af4db 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2776 (min) 1429 (brotli) +// total: 2940 (min) 1485 (brotli) // template.marko: 410 (min) 233 (brotli) const $a = /* @__PURE__ */ _let(6, ($scope) => _text($scope.b, $scope.g)); const $b = /* @__PURE__ */ _let(7, ($scope) => _text($scope.c, $scope.h)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js index ece6081aef..529d6acc76 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2786 (min) 1431 (brotli) +// total: 2950 (min) 1490 (brotli) // template.marko: 356 (min) 205 (brotli) const $obj = /* @__PURE__ */ _let(6, ($scope) => { _text($scope.a, JSON.stringify($scope.g)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js index cfe82173f4..5dc7f53fab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5773 (min) 2666 (brotli) +// total: 5939 (min) 2718 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $if = /* @__PURE__ */ _if(0, "", "b"); const $input_value = ($scope, input_value) => $if($scope, input_value ? 0 : 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js index bfb47dc382..39b337f56a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2435 (min) 1273 (brotli) +// total: 2599 (min) 1334 (brotli) // template.marko: 125 (min) 87 (brotli) const $clickCount = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { document.getElementById("button").textContent = $scope.b; diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js index a35f83809a..374ee5a8e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3011 (min) 1523 (brotli) +// total: 3175 (min) 1581 (brotli) // template.marko: 115 (min) 94 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => _attr_input_value_default($scope, "a", $scope.c)); const $setup__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js index d2a7f2a5d4..e93d83f663 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4524 (min) 1919 (brotli) +// total: 4688 (min) 1984 (brotli) // template.marko: 38 (min) 42 (brotli) const $input__script = _script("a0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js index 2c315c7064..9b41c274f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2562 (min) 1327 (brotli) +// total: 2726 (min) 1393 (brotli) // template.marko: 169 (min) 124 (brotli) const $count__script = _script("a0", ($scope) => { _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js index d0d8d4423e..c426142053 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6550 (min) 2974 (brotli) +// total: 6716 (min) 3021 (brotli) // template.marko: 457 (min) 225 (brotli) const $if_content2__count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope._._, $scope._._.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js index d0d8d4423e..c426142053 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6550 (min) 2974 (brotli) +// total: 6716 (min) 3021 (brotli) // template.marko: 457 (min) 225 (brotli) const $if_content2__count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope._._, $scope._._.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js index fc7ab4d689..6d129dfd64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1811 (min) 955 (brotli) +// total: 1975 (min) 1018 (brotli) // template.marko: 93 (min) 63 (brotli) const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function() { document.getElementById("count").textContent++; diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js index dde34e1e21..36e383e01a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7079 (min) 3161 (brotli) +// total: 7245 (min) 3220 (brotli) // template.marko: 242 (min) 167 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.f)); const $if = /* @__PURE__ */ _if(0, " ", "D l", $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js index 7d1c9da3f8..b59bec84de 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6334 (min) 2904 (brotli) +// total: 6500 (min) 2979 (brotli) // tags/counter.marko: 251 (min) 156 (brotli) const $template = ""; const $walks = " D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js index e56cf4eb59..93933ecfd9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2591 (min) 1343 (brotli) +// total: 2755 (min) 1402 (brotli) // template.marko: 113 (min) 94 (brotli) const $toggle__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $toggle($scope, !$scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js index efaa436b04..397a0eb950 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8628 (min) 3793 (brotli) +// total: 8795 (min) 3849 (brotli) // template.marko: 432 (min) 245 (brotli) _enable_catch(); const $await_content__value = ($scope, value) => _text($scope.a, value > 1 ? (() => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js index b5b7fb66d7..26741f4231 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6768 (min) 3096 (brotli) +// total: 6934 (min) 3151 (brotli) // template.marko: 293 (min) 187 (brotli) _enable_catch(); const $catch_content__err = ($scope, err) => _text($scope.a, err); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js index cf49484d6d..4d6cdcbf16 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5604 (min) 2577 (brotli) +// total: 5770 (min) 2644 (brotli) // template.marko: 230 (min) 138 (brotli) _enable_catch(); const $catch_content__err_message = ($scope, err_message) => _text($scope.a, err_message); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js index 0c918bccd8..f84dc29705 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2782 (min) 1418 (brotli) +// total: 2946 (min) 1481 (brotli) // template.marko: 215 (min) 122 (brotli) const $open = /* @__PURE__ */ _let(3, ($scope) => { _attr_details_or_dialog_open_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js index 0c918bccd8..f84dc29705 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2782 (min) 1418 (brotli) +// total: 2946 (min) 1481 (brotli) // template.marko: 215 (min) 122 (brotli) const $open = /* @__PURE__ */ _let(3, ($scope) => { _attr_details_or_dialog_open_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js index 36ce41081d..4c70ea8999 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4168 (min) 1934 (brotli) +// total: 4332 (min) 1997 (brotli) // template.marko: 218 (min) 121 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_input_checkedValue_default($scope, "c", $scope.f, "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js index fa7131c883..d164535746 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3303 (min) 1592 (brotli) +// total: 3467 (min) 1653 (brotli) // template.marko: 188 (min) 118 (brotli) const $checked = /* @__PURE__ */ _let(3, ($scope) => { _attr_input_checked_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js index b482ef9da1..50fb852e7c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4162 (min) 1929 (brotli) +// total: 4326 (min) 1992 (brotli) // template.marko: 212 (min) 115 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_input_checkedValue_default($scope, "c", $scope.f, "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js index 46e9a0c2c6..7c03eeb6a5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3804 (min) 1814 (brotli) +// total: 3968 (min) 1876 (brotli) // template.marko: 183 (min) 110 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => { _attr_input_value_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js index 90eb92c013..f41e91dcb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4092 (min) 1874 (brotli) +// total: 4256 (min) 1934 (brotli) // template.marko: 186 (min) 114 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_select_value_default($scope, "c", $scope.f); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js index eb1ca4bbcb..9b66da2722 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4098 (min) 1883 (brotli) +// total: 4262 (min) 1940 (brotli) // template.marko: 192 (min) 116 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_select_value_default($scope, "c", $scope.f); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js index 3a4265ff0b..f604d32e17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3846 (min) 1824 (brotli) +// total: 4010 (min) 1884 (brotli) // template.marko: 288 (min) 124 (brotli) const $value = /* @__PURE__ */ _let(7, ($scope) => { _attr_input_value_default($scope, "c", $scope.h); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js index de214d53dc..cbf642509a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13205 (min) 5116 (brotli) +// total: 13373 (min) 5165 (brotli) // template.marko: 376 (min) 217 (brotli) const $Wrap_content__walks = "b%c", $Wrap_content__template = "", $Message_content__walks = " b", $Message_content__template = " "; _resume_dynamic_tag(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js index 12863f7a14..fc1fcc83db 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1859 (min) 979 (brotli) +// total: 2023 (min) 1042 (brotli) // template.marko: 141 (min) 106 (brotli) const identity = (fn) => fn; const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", identity((_, el) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js index f404d0a6d0..66dbbe2b61 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1785 (min) 955 (brotli) +// total: 1949 (min) 1013 (brotli) // template.marko: 67 (min) 61 (brotli) const identity = (fn) => fn; const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", identity(() => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js index 46a748c874..c182f957f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4555 (min) 1935 (brotli) +// total: 4719 (min) 1997 (brotli) // template.marko: 99 (min) 61 (brotli) const $input_value__OR__a__script = _script("a0", ($scope) => _attrs_script($scope, "b")); const $input_value__script = _script("a1", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js index e4d462f1bd..b176cde3fa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2493 (min) 1308 (brotli) +// total: 2657 (min) 1366 (brotli) // template.marko: 99 (min) 85 (brotli) const identity = (fn) => fn; const $value = /* @__PURE__ */ _let(2, ($scope) => _text($scope.b, $scope.c)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js index 9fa0ebcef2..d708e0835f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2321 (min) 1232 (brotli) +// total: 2485 (min) 1295 (brotli) // template.marko: 132 (min) 110 (brotli) const $a = /* @__PURE__ */ _let(5, ($scope) => _text($scope.a, $scope.f)); const $b = /* @__PURE__ */ _let(6, ($scope) => _text($scope.b, $scope.g)); diff --git a/packages/runtime-tags/src/dom/queue.ts b/packages/runtime-tags/src/dom/queue.ts index ded847d255..06b5859691 100644 --- a/packages/runtime-tags/src/dom/queue.ts +++ b/packages/runtime-tags/src/dom/queue.ts @@ -25,6 +25,26 @@ export let pendingEffects: unknown[] = []; export let pendingScopes: Scope[] = []; export let rendering: undefined | 0 | 1; +// Track page-unload state so we skip lifecycle effects after pagehide fires. +// pageshow resets the flag to handle BFCache restore correctly. +export let isUnloading = false; +if (typeof window !== "undefined") { + window.addEventListener( + "pagehide", + () => { + isUnloading = true; + }, + { capture: true }, + ); + window.addEventListener( + "pageshow", + () => { + isUnloading = false; + }, + { capture: true }, + ); +} + const scopeKeyOffset = 1e3; export function queueRender( scope: Scope, @@ -71,6 +91,7 @@ export function queueEffect>( } export function run() { + if (isUnloading) return; const effects = pendingEffects; asyncRendersLookup = {}; try { diff --git a/packages/runtime-tags/src/dom/resume.ts b/packages/runtime-tags/src/dom/resume.ts index 46727bc368..e548a48222 100644 --- a/packages/runtime-tags/src/dom/resume.ts +++ b/packages/runtime-tags/src/dom/resume.ts @@ -10,7 +10,7 @@ import { ResumeSymbol, type Scope, } from "../common/types"; -import { runEffects } from "./queue"; +import { isUnloading, runEffects } from "./queue"; import { setParentBranch } from "./renderer"; import { destroyScope } from "./scope"; import { _el_read, type Signal } from "./signals"; @@ -349,6 +349,7 @@ export function init(runtimeId = DEFAULT_RUNTIME_ID) { export let isResuming: undefined | 0 | 1; function runResumeEffects(render: RenderData) { + if (isUnloading) return; try { isResuming = 1; runEffects(render.m!(), 1); From ed95720b9b49875547fea7c74dba4ac063b46241 Mon Sep 17 00:00:00 2001 From: Voon Wong Date: Sat, 30 May 2026 05:41:54 +1000 Subject: [PATCH 2/2] fix: cleanup the schedule --- .sizes.json | 36 +++++++++---------- .sizes/comments.csr/runtime.js | 10 +++++- .sizes/comments.ssr/runtime.js | 10 +++++- .sizes/counter.csr/runtime.js | 10 +++++- .sizes/counter.ssr/runtime.js | 10 +++++- .sizes/dom.js | 10 +++++- .../__snapshots__/dom.bundle.js | 2 +- .../class/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../let/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../async-state/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../await-cleanup/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../await-closure/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../await-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../basic-counter/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../bind-to-input/__snapshots__/dom.bundle.js | 2 +- .../body-content/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../const-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../debug-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../embed-counter/__snapshots__/dom.bundle.js | 2 +- .../embed-removal/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../for-by/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../hoist-only/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../html-script/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../html-style/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../let-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../lifecycle-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../pure-signal/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../script-tag/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../tag-var-rest/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../title-counter/__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- .../__snapshots__/dom.bundle.js | 2 +- packages/runtime-tags/src/dom/schedule.ts | 17 +++++++++ 337 files changed, 410 insertions(+), 353 deletions(-) diff --git a/.sizes.json b/.sizes.json index 0c067f1d29..ff555e86ec 100644 --- a/.sizes.json +++ b/.sizes.json @@ -7,8 +7,8 @@ { "name": "*", "total": { - "min": 21304, - "brotli": 7989 + "min": 21384, + "brotli": 8029 } }, { @@ -18,12 +18,12 @@ "brotli": 120 }, "runtime": { - "min": 4213, - "brotli": 1867 + "min": 4295, + "brotli": 1881 }, "total": { - "min": 4376, - "brotli": 1987 + "min": 4458, + "brotli": 2001 } }, { @@ -33,12 +33,12 @@ "brotli": 79 }, "runtime": { - "min": 2524, - "brotli": 1287 + "min": 2606, + "brotli": 1296 }, "total": { - "min": 2613, - "brotli": 1366 + "min": 2695, + "brotli": 1375 } }, { @@ -48,12 +48,12 @@ "brotli": 393 }, "runtime": { - "min": 6574, - "brotli": 2878 + "min": 6656, + "brotli": 2890 }, "total": { - "min": 7256, - "brotli": 3271 + "min": 7338, + "brotli": 3283 } }, { @@ -63,12 +63,12 @@ "brotli": 104 }, "runtime": { - "min": 2696, - "brotli": 1342 + "min": 2778, + "brotli": 1350 }, "total": { - "min": 2818, - "brotli": 1446 + "min": 2900, + "brotli": 1454 } } ] diff --git a/.sizes/comments.csr/runtime.js b/.sizes/comments.csr/runtime.js index 3eca93a4de..e136324138 100644 --- a/.sizes/comments.csr/runtime.js +++ b/.sizes/comments.csr/runtime.js @@ -1,4 +1,4 @@ -// size: 6574 (min) 2878 (brotli) +// size: 6656 (min) 2890 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -141,6 +141,14 @@ function removeAndDestroyBranch(branch) { function insertBranchBefore(branch, parentNode, nextSibling) { insertChildNodes(parentNode, nextSibling, branch.S, branch.K); } +typeof window < "u" && + window.addEventListener( + "pageshow", + () => { + ((isScheduled = 0), schedule()); + }, + { capture: !0 }, + ); function schedule() { isScheduled || ((isScheduled = 1), queueMicrotask(flushAndWaitFrame)); } diff --git a/.sizes/comments.ssr/runtime.js b/.sizes/comments.ssr/runtime.js index d815676021..2265d7e204 100644 --- a/.sizes/comments.ssr/runtime.js +++ b/.sizes/comments.ssr/runtime.js @@ -1,4 +1,4 @@ -// size: 2696 (min) 1342 (brotli) +// size: 2778 (min) 1350 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -38,6 +38,14 @@ function handleDelegated(ev) { (target["$" + ev.type]?.(ev, target), (target = ev.bubbles && !ev.cancelBubble && target.parentNode)); } +typeof window < "u" && + window.addEventListener( + "pageshow", + () => { + ((isScheduled = 0), schedule()); + }, + { capture: !0 }, + ); function schedule() { isScheduled || ((isScheduled = 1), queueMicrotask(flushAndWaitFrame)); } diff --git a/.sizes/counter.csr/runtime.js b/.sizes/counter.csr/runtime.js index 58f63ebe23..2991d18f6d 100644 --- a/.sizes/counter.csr/runtime.js +++ b/.sizes/counter.csr/runtime.js @@ -1,4 +1,4 @@ -// size: 4213 (min) 1867 (brotli) +// size: 4295 (min) 1881 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -124,6 +124,14 @@ function resetControllers(scope) { function removeAndDestroyBranch(branch) { (destroyBranch(branch), removeChildNodes(branch.S, branch.K)); } +typeof window < "u" && + window.addEventListener( + "pageshow", + () => { + ((isScheduled = 0), schedule()); + }, + { capture: !0 }, + ); function schedule() { isScheduled || ((isScheduled = 1), queueMicrotask(flushAndWaitFrame)); } diff --git a/.sizes/counter.ssr/runtime.js b/.sizes/counter.ssr/runtime.js index 87d1017272..650fa78f62 100644 --- a/.sizes/counter.ssr/runtime.js +++ b/.sizes/counter.ssr/runtime.js @@ -1,4 +1,4 @@ -// size: 2524 (min) 1287 (brotli) +// size: 2606 (min) 1296 (brotli) //#region packages/runtime-tags/dist/dom.mjs let decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), @@ -38,6 +38,14 @@ function handleDelegated(ev) { (target["$" + ev.type]?.(ev, target), (target = ev.bubbles && !ev.cancelBubble && target.parentNode)); } +typeof window < "u" && + window.addEventListener( + "pageshow", + () => { + ((isScheduled = 0), schedule()); + }, + { capture: !0 }, + ); function schedule() { isScheduled || ((isScheduled = 1), queueMicrotask(flushAndWaitFrame)); } diff --git a/.sizes/dom.js b/.sizes/dom.js index 35d4f9e9eb..e0c276ce00 100644 --- a/.sizes/dom.js +++ b/.sizes/dom.js @@ -1,4 +1,4 @@ -// size: 21304 (min) 7989 (brotli) +// size: 21384 (min) 8029 (brotli) //#region packages/runtime-tags/dist/dom.mjs let empty = [], rest = Symbol(), @@ -453,6 +453,14 @@ function tempDetachBranch(branch) { ((fragment.namespaceURI = branch.S.parentNode.namespaceURI), insertChildNodes(fragment, null, branch.S, branch.K)); } +typeof window < "u" && + window.addEventListener( + "pageshow", + () => { + ((isScheduled = 0), schedule()); + }, + { capture: !0 }, + ); function schedule() { isScheduled || ((isScheduled = 1), queueMicrotask(flushAndWaitFrame)); } diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js index 8d5d6bacdb..ecbea40a90 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/ambiguous-tags-and-components-dir/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1111 (min) 535 (brotli) +// total: 1377 (min) 618 (brotli) // v:template.marko.hydrate-6.js: 0 (min) 1 (brotli) var v_template_marko_hydrate_6_default = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js index 5976471dd2..4dd9f34693 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 49700 (min) 14721 (brotli) +// total: 49983 (min) 14807 (brotli) // template.marko: 423 (min) 239 (brotli) var import_components = require_components(); var import_vdom = require_vdom(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js index fc51bcf56b..153f5623b1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67745 (min) 21033 (brotli) +// total: 67827 (min) 21038 (brotli) // components/custom-tag.marko: 240 (min) 162 (brotli) var import_vdom = require_vdom(); const $template = ""; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js index e9925e85e7..4518756503 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65677 (min) 20197 (brotli) +// total: 65761 (min) 20199 (brotli) // components/tags-counter.marko: 115 (min) 99 (brotli) var import_vdom = require_vdom(); const $template = ""; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js index 51b30e35f8..c5bc50bb9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66959 (min) 20764 (brotli) +// total: 67041 (min) 20797 (brotli) // components/class-counter.marko: 432 (min) 249 (brotli) var import_vdom = require_vdom(); var import_renderer = /* @__PURE__ */ __toESM(require_renderer()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js index d2f3109158..b98868c8a3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-in-components-in-tags-dir/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66513 (min) 20520 (brotli) +// total: 66802 (min) 20609 (brotli) // tags/components/hello-internal.marko: 335 (min) 193 (brotli) var import_vdom = require_vdom(); var import_const_element = /* @__PURE__ */ __toESM(require_const_element()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js index e9925e85e7..4518756503 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65677 (min) 20197 (brotli) +// total: 65761 (min) 20199 (brotli) // components/tags-counter.marko: 115 (min) 99 (brotli) var import_vdom = require_vdom(); const $template = ""; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js index 5f55d74e50..174814130a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67271 (min) 20852 (brotli) +// total: 67354 (min) 20858 (brotli) // components/my-button.marko: 422 (min) 238 (brotli) var import_vdom = require_vdom(); var import_dynamic_tag = /* @__PURE__ */ __toESM(require_dynamic_tag()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js index df5a861030..45d0e879eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66910 (min) 20744 (brotli) +// total: 66992 (min) 20764 (brotli) // components/class-counter.marko: 454 (min) 258 (brotli) var import_vdom = require_vdom(); var import_renderer = /* @__PURE__ */ __toESM(require_renderer()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js index ac7762dc12..57080c848d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66000 (min) 20293 (brotli) +// total: 66087 (min) 20339 (brotli) // components/tags-layout.marko: 134 (min) 108 (brotli) var import_vdom = require_vdom(); var import_attr_tag = require_attr_tag(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js index ee406d3b5e..f7c9fdf4e0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 65672 (min) 20210 (brotli) +// total: 65756 (min) 20214 (brotli) // components/tags-layout.marko: 115 (min) 98 (brotli) var import_vdom = require_vdom(); const $template = "
"; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js index 63b9d144aa..37a2e5112e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67378 (min) 20918 (brotli) +// total: 67460 (min) 20895 (brotli) // components/class-layout.marko: 536 (min) 288 (brotli) var import_vdom = require_vdom(); var import_dynamic_tag = /* @__PURE__ */ __toESM(require_dynamic_tag()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js index f23b8d80c3..15196273d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66671 (min) 20613 (brotli) +// total: 66951 (min) 20648 (brotli) // components/my-button/component-browser.js: 91 (min) 60 (brotli) var import_registry = require_registry(); var import_renderer = /* @__PURE__ */ __toESM(require_renderer()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js index 97bb124a29..b41fccd03d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 66019 (min) 20311 (brotli) +// total: 66103 (min) 20361 (brotli) // components/tags-layout.marko: 183 (min) 146 (brotli) var import_vdom = require_vdom(); const $template = "
"; diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js index caf60f860d..39a0815f68 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 67730 (min) 21087 (brotli) +// total: 67812 (min) 21088 (brotli) // components/class-layout.marko: 549 (min) 291 (brotli) var import_vdom = require_vdom(); var import_dynamic_tag = /* @__PURE__ */ __toESM(require_dynamic_tag()); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js index ca71b89f8f..8b02133aae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3204 (min) 1577 (brotli) +// total: 3286 (min) 1594 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js index d72e3dc99a..681f4ed430 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2990 (min) 1511 (brotli) +// total: 3072 (min) 1521 (brotli) // template.marko: 279 (min) 181 (brotli) const $pattern2 = ($scope, $pattern) => { $foo2($scope, $pattern.foo); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js index e95e1408db..4cde891e7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2515 (min) 1304 (brotli) +// total: 2597 (min) 1304 (brotli) // tags/child.marko: 128 (min) 102 (brotli) const $input__script = _script("b0", ($scope) => { { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js index 9f76f93997..c549345cea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2817 (min) 1431 (brotli) +// total: 2899 (min) 1441 (brotli) // template.marko: 164 (min) 125 (brotli) const $bar__OR__$fooChange = /* @__PURE__ */ _or(7, _script("a1", ($scope) => _on($scope.a, "click", function() { $scope.g($scope.d + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js index bc0fc09c1b..9117c7f95b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2678 (min) 1371 (brotli) +// total: 2760 (min) 1376 (brotli) // template.marko: 120 (min) 96 (brotli) function identity(fn) { return fn; diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js index e243a52fd8..62928cee57 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2851 (min) 1438 (brotli) +// total: 2933 (min) 1447 (brotli) // template.marko: 240 (min) 152 (brotli) const $resetCount2 = /* @__PURE__ */ _const(4, _script("a1", ($scope) => _on($scope.c, "click", $scope.e))); const $count__script = _script("a2", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js index 8be9c8653c..ca19b546d9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5747 (min) 2653 (brotli) +// total: 5829 (min) 2671 (brotli) // template.marko: 121 (min) 97 (brotli) const $if = /* @__PURE__ */ _if(0, "", " b", _script("a0", ($scope) => _on($scope.a, "click", function() { $hide($scope._, true); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js index 4848356d45..fc77c2a1f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2723 (min) 1388 (brotli) +// total: 2805 (min) 1395 (brotli) // template.marko: 174 (min) 126 (brotli) const $liveCount = /* @__PURE__ */ _let(2, ($scope) => _text($scope.b, $scope.c)); const $count = /* @__PURE__ */ _let(3); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js index 284e66dad9..4be3030d6e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1949 (min) 1012 (brotli) +// total: 2215 (min) 1110 (brotli) // template.marko: 67 (min) 63 (brotli) const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function(_, el) { el.textContent = "0"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js index d8f97db3d6..a28cc27161 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7182 (min) 3198 (brotli) +// total: 7264 (min) 3210 (brotli) // template.marko: 570 (min) 224 (brotli) const multiply = (multiplier, n) => resolveAfter(multiplier * n); const $await_content5__result = ($scope, result) => _text($scope.a, result); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js index a9b06fb90b..d6dd6275c4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6442 (min) 2904 (brotli) +// total: 6718 (min) 3007 (brotli) // template.marko: 232 (min) 129 (brotli) _enable_catch(); const $await_content3__setup = _script("a4", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js index 04e0a0218c..e164451dfa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8654 (min) 3788 (brotli) +// total: 8736 (min) 3805 (brotli) // template.marko: 274 (min) 175 (brotli) _enable_catch(); const $await_content__value = ($scope, value) => _text($scope.a, value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js index 6fb2a12fc5..89379bb3da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13187 (min) 5076 (brotli) +// total: 13270 (min) 5089 (brotli) // tags/hello/index.marko: 0 (min) 1 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, 0, 0, 1); const $input_item = ($scope, input_item) => $dynamicTag($scope, input_item, () => [1]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js index b81dcff070..7b3ce32fca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6377 (min) 2607 (brotli) +// total: 6653 (min) 2698 (brotli) // tags/hello/index.marko: 114 (min) 53 (brotli) const $for_content3__row__script = _script("b1", ($scope) => _attrs_script($scope, "a")); const $for_content2__col__script = _script("b2", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js index 3eeac60de3..d8bbc265f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3260 (min) 1641 (brotli) +// total: 3342 (min) 1646 (brotli) // template.marko: 172 (min) 149 (brotli) const $item_content__mult__OR__item = /* @__PURE__ */ _or(1, ($scope) => _text($scope.a, $scope.f * $scope._.d)); const $item_content__mult = /* @__PURE__ */ _closure_get(3, $item_content__mult__OR__item); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js index 5e27d09f64..8093000f20 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2870 (min) 1445 (brotli) +// total: 2952 (min) 1452 (brotli) // template.marko: 144 (min) 109 (brotli) const $disabled__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $disabled($scope, !$scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js index c7b0df006b..bf73a0a091 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1365 (brotli) +// total: 2740 (min) 1373 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js index 3e7eaecabb..6177d15335 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9689 (min) 4159 (brotli) +// total: 9772 (min) 4176 (brotli) // template.marko: 732 (min) 350 (brotli) _enable_catch(); const $await_content2__setup__script = _script("a2", ($scope) => $signal($scope, 0).onabort = () => document.querySelector("#two").textContent = "Pass"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js index 11d1466410..37efb95a7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7005 (min) 3163 (brotli) +// total: 7087 (min) 3176 (brotli) // template.marko: 194 (min) 139 (brotli) _enable_catch(); const $placeholder_content = _content_resume("a2", "loading...", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js index ba8908ba49..01a185a156 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6479 (min) 2948 (brotli) +// total: 6561 (min) 2961 (brotli) // template.marko: 189 (min) 145 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(3, 0, ($scope) => _text($scope.a, $scope._.e)); const $if = /* @__PURE__ */ _if(3, " ", "D l", $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js index ef8171409a..8ba8d0c1e8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7173 (min) 3245 (brotli) +// total: 7255 (min) 3257 (brotli) // template.marko: 248 (min) 171 (brotli) _enable_catch(); const $if_content__value = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js index c14f1956c1..0eba68c917 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7341 (min) 3301 (brotli) +// total: 7423 (min) 3315 (brotli) // template.marko: 228 (min) 163 (brotli) _enable_catch(); const $placeholder_content = _content_resume("a1", "loading...", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js index 4dfd14c537..d0fae0b746 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8535 (min) 3722 (brotli) +// total: 8617 (min) 3733 (brotli) // template.marko: 364 (min) 215 (brotli) _enable_catch(); const $await_content__setup = _script("a0", ($scope) => document.querySelector("#outside").textContent = "Fail"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js index d1b2dfa6e7..b9f5d1ca8c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3645 (min) 1775 (brotli) +// total: 3727 (min) 1787 (brotli) // template.marko: 222 (min) 118 (brotli) const $await_content3__count = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.b, $scope._.e)); const $await_content2__count = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.b, $scope._.e)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js index 938a468999..760d45cd67 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8537 (min) 3720 (brotli) +// total: 8619 (min) 3735 (brotli) // template.marko: 416 (min) 224 (brotli) _enable_catch(); const $await_content__value__script = _script("a0", ($scope) => console.log(`effect ran value=${$scope.c}`)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js index 7e30eee54b..7cf7c8fb39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8539 (min) 3721 (brotli) +// total: 8621 (min) 3737 (brotli) // template.marko: 418 (min) 227 (brotli) _enable_catch(); const $await_content__value__script = _script("a0", ($scope) => console.log(`effect ran value=${$scope.c}`)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js index 79d57d75ca..b90a67a315 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2795 (min) 1418 (brotli) +// total: 2877 (min) 1426 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.e)); const $onClick$1 = /* @__PURE__ */ _const(4, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js index 9b1649c09b..d3a3a9488d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2795 (min) 1417 (brotli) +// total: 2877 (min) 1426 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.f)); const $onClick$1 = /* @__PURE__ */ _const(5, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js index 0f4af4ac50..78c9ec9de8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2927 (min) 1463 (brotli) +// total: 3009 (min) 1473 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.f)); const $onClick$1 = /* @__PURE__ */ _const(5, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js index 4b7239aebd..d2a03b23e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2822 (min) 1431 (brotli) +// total: 2904 (min) 1439 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.f)); const $onClick$1 = /* @__PURE__ */ _const(5, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js index 79d57d75ca..b90a67a315 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2795 (min) 1418 (brotli) +// total: 2877 (min) 1426 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.e)); const $onClick$1 = /* @__PURE__ */ _const(4, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js index 202c1aeff0..0412852f64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3256 (min) 1631 (brotli) +// total: 3338 (min) 1634 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $onClick__script = _script("b0", ($scope) => _on($scope.a, "click", $scope.e)); const $onClick$1 = /* @__PURE__ */ _const(4, $onClick__script); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js index 38b1c4b255..d1ee5f2d8d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1365 (brotli) +// total: 2740 (min) 1373 (brotli) // tags/counter.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("b0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js index d5a5e9443d..a66248bfb8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6069 (min) 2783 (brotli) +// total: 6151 (min) 2795 (brotli) // template.marko: 254 (min) 161 (brotli) const $if_content__count = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.e)); const $if = /* @__PURE__ */ _if(2, "The count is ", "b%b", $if_content__count); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js index 59aff8af06..d6691ffca0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6067 (min) 2776 (brotli) +// total: 6149 (min) 2786 (brotli) // template.marko: 252 (min) 159 (brotli) const $if_content__count = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.e)); const $if = /* @__PURE__ */ _if(2, " ", "D l", $if_content__count); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js index 5218384415..4348cddb54 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2775 (min) 1410 (brotli) +// total: 2857 (min) 1417 (brotli) // template.marko: 156 (min) 126 (brotli) const $increment2 = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.a, "click", $scope.d))); const $clickCount = /* @__PURE__ */ _let(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js index e9f6e9ce5b..685100c9f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2880 (min) 1461 (brotli) +// total: 2962 (min) 1471 (brotli) // template.marko: 236 (min) 139 (brotli) const $multipliedCount = ($scope, multipliedCount) => _text($scope.d, multipliedCount); const $count__OR__multiplier = /* @__PURE__ */ _or(6, ($scope) => $multipliedCount($scope, $scope.e * $scope.f)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js index b259b3a68f..bcbae43b60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1365 (brotli) +// total: 2740 (min) 1373 (brotli) // template.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js index 43d8fff3bd..4686f2a638 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-effect-no-deps/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1627 (min) 880 (brotli) +// total: 1893 (min) 958 (brotli) // template.marko: 51 (min) 55 (brotli) const $setup__script = _script("a0", ($scope) => document.body.className = "no-deps"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js index a8d13c3d2f..240d094ab6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6091 (min) 2797 (brotli) +// total: 6173 (min) 2809 (brotli) // template.marko: 199 (min) 148 (brotli) const $if_content__message_text = /* @__PURE__ */ _if_closure(1, 0, ($scope) => _text($scope.a, $scope._.d)); const $if_content__setup = $if_content__message_text; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js index c7b0df006b..bf73a0a091 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1365 (brotli) +// total: 2740 (min) 1373 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js index 3792528325..376c213adf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2785 (min) 1422 (brotli) +// total: 2867 (min) 1431 (brotli) // template.marko: 126 (min) 110 (brotli) const $a__OR__b = /* @__PURE__ */ _or(4, _script("a0", ($scope) => _on($scope.a, "click", function() { $a($scope, $scope.c.map((a) => $scope.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js index 8db4747617..049f039bd8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2645 (min) 1356 (brotli) +// total: 2727 (min) 1362 (brotli) // template.marko: 87 (min) 79 (brotli) const $data = /* @__PURE__ */ _let(2, ($scope) => _text($scope.b, $scope.c)); const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js index 977be2eb23..3b915594cc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2863 (min) 1451 (brotli) +// total: 2945 (min) 1453 (brotli) // tags/comments.marko: 137 (min) 121 (brotli) const $for_content__open__script = _script("b0", ($scope) => _on($scope.c, "click", function() { $for_content__open($scope, !$scope.m); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js index 662195a8bc..3bbf289de8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2936 (min) 1490 (brotli) +// total: 3018 (min) 1496 (brotli) // template.marko: 217 (min) 166 (brotli) const $items__OR__index__script = _script("a0", ($scope) => _on($scope.c, "click", function() { const newItems = $scope.d.slice(1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js index 3ec9434ed1..e3f0e2f163 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2881 (min) 1472 (brotli) +// total: 2963 (min) 1483 (brotli) // template.marko: 268 (min) 197 (brotli) const names = [ "Dylan", diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js index 0eb80bb610..d6db814bf4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2971 (min) 1486 (brotli) +// total: 3053 (min) 1490 (brotli) // template.marko: 152 (min) 105 (brotli) const $foo = /* @__PURE__ */ _let(3, ($scope) => { _attr_class($scope.a, ($scope.d, $scope.d.class)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js index a710bc9491..567eb2d9b9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7403 (min) 3412 (brotli) +// total: 7485 (min) 3427 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js index b9244e5888..6be85fed11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13752 (min) 5335 (brotli) +// total: 13835 (min) 5346 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js index c3e891d838..8216981573 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3131 (min) 1577 (brotli) +// total: 3213 (min) 1581 (brotli) // template.marko: 136 (min) 111 (brotli) const $child_content__count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope._, $scope._.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js index 723da85c20..273abbfe9c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4699 (min) 2183 (brotli) +// total: 4781 (min) 2189 (brotli) // template.marko: 194 (min) 147 (brotli) const $falseChild_content__count__script = _script("a1", ($scope) => _on($scope.a, "click", function() { $count($scope._, $scope._.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js index c87c7ab238..2369f4578b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3110 (min) 1545 (brotli) +// total: 3192 (min) 1556 (brotli) // template.marko: 195 (min) 129 (brotli) const $for_content__selected__OR__num = /* @__PURE__ */ _or(4, ($scope) => { _attr($scope.a, "data-selected", $scope._.b === $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js index ca5bca6046..7350185c6e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6107 (min) 2815 (brotli) +// total: 6189 (min) 2823 (brotli) // template.marko: 295 (min) 197 (brotli) const $else_content__clickCount = /* @__PURE__ */ _if_closure(0, 1, ($scope) => _text($scope.a, $scope._.b)); const $else_content__setup = $else_content__clickCount; diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js index 24c75206cf..a5036588b1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7085 (min) 3263 (brotli) +// total: 7167 (min) 3270 (brotli) // template.marko: 280 (min) 185 (brotli) const $for_content__item = ($scope, item) => _text($scope.a, item); const $for_content__$params = ($scope, $params2) => $for_content__item($scope, $params2[0]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js index 8763ee3c22..7f9838a600 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7193 (min) 3277 (brotli) +// total: 7275 (min) 3293 (brotli) // template.marko: 317 (min) 195 (brotli) const $for_content__x = ($scope, x) => _text($scope.a, x); const $for_content__$params = ($scope, $params2) => $for_content__x($scope, $params2[0]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js index 52ff47b143..b9ab39bca6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5745 (min) 2661 (brotli) +// total: 5827 (min) 2675 (brotli) // template.marko: 117 (min) 98 (brotli) const $if = /* @__PURE__ */ _if(0, "Hello!", "b"); const $show__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js index b259b3a68f..bcbae43b60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1365 (brotli) +// total: 2740 (min) 1373 (brotli) // template.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js index 615e3f023e..2284233a44 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6012 (min) 2758 (brotli) +// total: 6094 (min) 2775 (brotli) // template.marko: 191 (min) 145 (brotli) const $if_content__message = /* @__PURE__ */ _if_closure(1, 0, ($scope) => _text($scope.a, $scope._.d)); const $if = /* @__PURE__ */ _if(1, " ", "D l", $if_content__message); diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js index d7fd6ec38d..9dfd24c5cf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2794 (min) 1426 (brotli) +// total: 2876 (min) 1440 (brotli) // template.marko: 138 (min) 114 (brotli) const $a__OR__b__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $a($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js index 05a609e57f..de72f64353 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3635 (min) 1780 (brotli) +// total: 3717 (min) 1789 (brotli) // tags/counter.marko: 116 (min) 100 (brotli) const $x__script = _script("b0", ($scope) => _on($scope.a, "click", function() { $x$1($scope, $scope.j + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js index 04609738a9..4c2ea7410a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9207 (min) 3536 (brotli) +// total: 9289 (min) 3539 (brotli) // tags/FancyButton.marko: 38 (min) 42 (brotli) const $attrs__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $attrs = /* @__PURE__ */ _const(5, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js index e601dee247..9188ca0423 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2839 (min) 1441 (brotli) +// total: 2921 (min) 1451 (brotli) // template.marko: 191 (min) 125 (brotli) const $if_content__count = /* @__PURE__ */ _if_closure(2, 0, ($scope) => _text($scope.a, $scope._.d)); const $count__script = _script("a1", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js index b9ec5ef72b..b5999c1f8d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2003 (min) 1033 (brotli) +// total: 2269 (min) 1132 (brotli) // template.marko: 127 (min) 90 (brotli) const $fooChange2 = /* @__PURE__ */ _const(2, _script("a1", ($scope) => _on($scope.a, "click", function() { $scope.c("After"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js index 9463921a14..d5963322b3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1695 (min) 894 (brotli) +// total: 1961 (min) 979 (brotli) // tags/child.marko: 24 (min) 28 (brotli) const $input_valueChange__script = _script("b0", ($scope) => $scope.c(1)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js index 28a64fe092..18b28687b1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7653 (min) 3535 (brotli) +// total: 7735 (min) 3525 (brotli) // tags/child.marko: 92 (min) 72 (brotli) const $template = "

"; const $walks = "D lD lD l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js index 1d9a0d9078..b232b9f284 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7473 (min) 3311 (brotli) +// total: 7555 (min) 3322 (brotli) // tags/child.marko: 92 (min) 73 (brotli) const $template = "
a
a

a

"; const $walks = "D%lD%lD%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js index 3b7fddef16..62c9f615e3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5986 (min) 2755 (brotli) +// total: 6068 (min) 2768 (brotli) // template.marko: 279 (min) 179 (brotli) const $if_content__setup__script = _script("a0", ($scope) => { $scope._.b.innerHTML += "\nmounted"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js index fe5c5b6ef3..99bce0c049 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6163 (min) 2820 (brotli) +// total: 6245 (min) 2835 (brotli) // tags/child.marko: 90 (min) 72 (brotli) const $template = "
a
b

c

"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js index f3fdb7a7e2..58c5eacb39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8104 (min) 3674 (brotli) +// total: 8186 (min) 3702 (brotli) // tags/child.marko: 68 (min) 63 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js index d538e9e4c1..e1115d3af1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7603 (min) 3489 (brotli) +// total: 7685 (min) 3505 (brotli) // tags/child.marko: 92 (min) 72 (brotli) const $template = "
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js index f9eb85339c..2648244a94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7407 (min) 3283 (brotli) +// total: 7489 (min) 3299 (brotli) // tags/child.marko: 92 (min) 72 (brotli) const $template = "

"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js index c0bef41029..5000040148 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5968 (min) 2735 (brotli) +// total: 6050 (min) 2756 (brotli) // template.marko: 261 (min) 172 (brotli) const $if_content__setup__script = _script("a0", ($scope) => { $scope._.b.innerHTML += "\nmounted"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js index 6614b22d42..d4390e7b30 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6145 (min) 2806 (brotli) +// total: 6227 (min) 2825 (brotli) // tags/child.marko: 90 (min) 72 (brotli) const $template = "
child
"; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js index 30e927b47c..f32d09ae17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1698 (min) 907 (brotli) +// total: 1964 (min) 988 (brotli) // template.marko: 134 (min) 94 (brotli) const $if_content__run = /* @__PURE__ */ _const(1, _script("a2", ($scope) => $scope.b())); function $run($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js index b52fb8d075..f8b05e52a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6038 (min) 2780 (brotli) +// total: 6120 (min) 2785 (brotli) // template.marko: 230 (min) 163 (brotli) const $if_content__getMessage = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.h())); const $if = /* @__PURE__ */ _if(0, " ", "D l", $if_content__getMessage); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js index 34775c8f75..124dd7d3a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2788 (min) 1423 (brotli) +// total: 2870 (min) 1433 (brotli) // tags/counter.marko: 129 (min) 113 (brotli) const $input__OR__count = /* @__PURE__ */ _or(5, ($scope) => _text($scope.b, $scope.d.format($scope.e))); const $count__script = _script("b0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js index 6add24e6f1..1467a2bc26 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2865 (min) 1456 (brotli) +// total: 2947 (min) 1465 (brotli) // tags/display-intersection.marko: 0 (min) 1 (brotli) const $input_value__OR__dummy = /* @__PURE__ */ _or(5, ($scope) => _text($scope.a, ($scope.e, $scope.d))); const $value = /* @__PURE__ */ _const(3, $input_value__OR__dummy); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js index b642dc6cf0..5dc087d574 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2882 (min) 1452 (brotli) +// total: 2964 (min) 1469 (brotli) // tags/counter.marko: 129 (min) 113 (brotli) const $input__OR__count = /* @__PURE__ */ _or(5, ($scope) => _text($scope.b, $scope.d.format($scope.e))); const $count__script = _script("b0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js index b188f23d70..964ed77168 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 15328 (min) 6014 (brotli) +// total: 15410 (min) 6028 (brotli) // tags/sections.marko: 0 (min) 1 (brotli) const $if_content__dynamicTag = /* @__PURE__ */ _dynamic_tag(0); const $if_content__content = /* @__PURE__ */ _if_closure(0, 0, ($scope) => $if_content__dynamicTag($scope, $scope._.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js index 9e5c52c684..d8500fc519 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5759 (min) 2667 (brotli) +// total: 5841 (min) 2680 (brotli) // template.marko: 131 (min) 105 (brotli) const $if = /* @__PURE__ */ _if(0, "Hi", "b"); const $show__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js index a5d84c248c..d52a5f91f2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1952 (min) 1025 (brotli) +// total: 2218 (min) 1115 (brotli) // template.marko: 60 (min) 52 (brotli) const $y_getter = _hoist_resume("a1", 4); function $y() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js index 4398c3b4c3..1192818c22 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3190 (min) 1605 (brotli) +// total: 3272 (min) 1610 (brotli) // tags/outer.marko: 61 (min) 65 (brotli) const $inner_content__setup__script = _script("c0", ($scope) => _on($scope.a, "click", function() { this.doThing(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js index c7ca377a48..0a550eac7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8172 (min) 3661 (brotli) +// total: 8254 (min) 3681 (brotli) // template.marko: 490 (min) 292 (brotli) const $for_content__checked = /* @__PURE__ */ _let(6, ($scope) => _attr_input_checked($scope, "a", $scope.g, $checkedChange($scope))); const $for_content__states__OR__state = /* @__PURE__ */ _or(3, ($scope) => $for_content__checked($scope, $scope.c, $valueChange($scope))); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js index b0d4abe62d..aa5f2c944e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8754 (min) 3345 (brotli) +// total: 8836 (min) 3352 (brotli) // tags/checkbox.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js index c33c206e07..e903edbb21 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4677 (min) 2084 (brotli) +// total: 4759 (min) 2090 (brotli) // template.marko: 566 (min) 190 (brotli) const $checked = /* @__PURE__ */ _let(5, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.f, $checkedValueChange($scope), 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js index cfd8babb7d..ab6d20a84d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4413 (min) 1976 (brotli) +// total: 4495 (min) 1986 (brotli) // template.marko: 480 (min) 164 (brotli) const $checked = /* @__PURE__ */ _let(4, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.e + "", $checkedValueChange($scope), 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js index e6abe22a5c..9517ea9412 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9004 (min) 3414 (brotli) +// total: 9086 (min) 3421 (brotli) // tags/radio.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js index d840a0043e..98fb2adad4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4418 (min) 2012 (brotli) +// total: 4500 (min) 2013 (brotli) // template.marko: 372 (min) 157 (brotli) const $checkedValue__OR__$checkedValueChange = /* @__PURE__ */ _or(6, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.e, $scope.f, "a"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js index eecf24ca04..c5d3ab830f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9007 (min) 3416 (brotli) +// total: 9089 (min) 3422 (brotli) // tags/checkbox.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js index d840a0043e..98fb2adad4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4418 (min) 2012 (brotli) +// total: 4500 (min) 2013 (brotli) // template.marko: 372 (min) 157 (brotli) const $checkedValue__OR__$checkedValueChange = /* @__PURE__ */ _or(6, ($scope) => { _attr_input_checkedValue($scope, "a", $scope.e, $scope.f, "a"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js index 99302bb268..0a67845fc3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3391 (min) 1607 (brotli) +// total: 3473 (min) 1621 (brotli) // template.marko: 180 (min) 117 (brotli) const $checked = /* @__PURE__ */ _let(2, ($scope) => { _attr_input_checked($scope, "a", $scope.c, $checkedChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js index 12600f2b2e..6656153784 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2752 (min) 1392 (brotli) +// total: 2834 (min) 1402 (brotli) // template.marko: 198 (min) 129 (brotli) const $open = /* @__PURE__ */ _let(2, ($scope) => { _attr_details_or_dialog_open($scope, "a", $scope.c, $openChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js index 12600f2b2e..6656153784 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2752 (min) 1392 (brotli) +// total: 2834 (min) 1402 (brotli) // template.marko: 198 (min) 129 (brotli) const $open = /* @__PURE__ */ _let(2, ($scope) => { _attr_details_or_dialog_open($scope, "a", $scope.c, $openChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js index 1654891e7a..1c3527e76f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8117 (min) 3524 (brotli) +// total: 8199 (min) 3536 (brotli) // template.marko: 606 (min) 261 (brotli) const $if_content__checkedValue__OR__$checkedValueChange = /* @__PURE__ */ _or(1, ($scope) => _attr_input_checkedValue($scope, "a", $scope._.g, $scope._.h, "b")); const $if_content__checkedValue = /* @__PURE__ */ _if_closure(1, 0, $if_content__checkedValue__OR__$checkedValueChange); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js index 1095ea8d98..4dab8f5cbc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4168 (min) 1938 (brotli) +// total: 4250 (min) 1944 (brotli) // tags/custom-input.marko: 108 (min) 80 (brotli) const $input_value__OR__input_valueChange = /* @__PURE__ */ _or(5, ($scope) => _attr_input_value($scope, "a", $scope.d, $scope.e && $valueChange$1($scope))); const $input_value = /* @__PURE__ */ _const(3, $input_value__OR__input_valueChange); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js index 14b4bc3f3e..349c7c9688 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3911 (min) 1833 (brotli) +// total: 3993 (min) 1840 (brotli) // template.marko: 200 (min) 125 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => { _attr_input_value($scope, "a", $scope.d, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js index 92d9c453db..9a94116a6d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8733 (min) 3330 (brotli) +// total: 8815 (min) 3343 (brotli) // tags/my-input.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js index 7a57a519be..c76bef8d63 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3883 (min) 1827 (brotli) +// total: 3965 (min) 1833 (brotli) // template.marko: 168 (min) 116 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => { _attr_input_value($scope, "a", $scope.c, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js index 3fc9db3bb0..2014ec60c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13393 (min) 5131 (brotli) +// total: 13476 (min) 5155 (brotli) // template.marko: 466 (min) 219 (brotli) _resume_dynamic_tag(); const $tagselect_content__setup__script = _script("a2", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js index 277fa82dcf..786e03c3f9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4409 (min) 1989 (brotli) +// total: 4491 (min) 1997 (brotli) // template.marko: 236 (min) 152 (brotli) const $selected = /* @__PURE__ */ _let(3, ($scope) => { _attr_select_value($scope, "a", $scope.d, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js index b21dbb9604..acafd57237 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9088 (min) 3921 (brotli) +// total: 9170 (min) 3940 (brotli) // template.marko: 546 (min) 285 (brotli) const $for_content__opt = ($scope, opt) => { _attr($scope.a, "value", opt); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js index 563d7ad3e5..6cf1f0fb66 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 11787 (min) 4425 (brotli) +// total: 11870 (min) 4441 (brotli) // tags/my-select.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js index 50fb89133c..23f0715683 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4390 (min) 1982 (brotli) +// total: 4472 (min) 1987 (brotli) // template.marko: 217 (min) 137 (brotli) const $selected = /* @__PURE__ */ _let(3, ($scope) => { _attr_select_value($scope, "a", $scope.d, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js index 6cdfdca483..76161f9a17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4179 (min) 1880 (brotli) +// total: 4261 (min) 1894 (brotli) // template.marko: 178 (min) 118 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => { _attr_select_value($scope, "a", $scope.c, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js index 76013fbcb5..aeaf762bf0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8721 (min) 3323 (brotli) +// total: 8803 (min) 3332 (brotli) // tags/my-textarea.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); const $input = /* @__PURE__ */ _const(2, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js index 7a57a519be..c76bef8d63 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3883 (min) 1827 (brotli) +// total: 3965 (min) 1833 (brotli) // template.marko: 168 (min) 116 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => { _attr_input_value($scope, "a", $scope.c, $valueChange($scope)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js index 3e521e3434..60c6574bbd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2845 (min) 1438 (brotli) +// total: 2927 (min) 1447 (brotli) // template.marko: 199 (min) 122 (brotli) const $a__OR__b = /* @__PURE__ */ _or(7, ($scope) => _text($scope.e, $scope.f + $scope.g)); const $a = /* @__PURE__ */ _let(5, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js index f7556aed60..50a595d3d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3364 (min) 1680 (brotli) +// total: 3446 (min) 1672 (brotli) // tags/my-let.marko: 83 (min) 74 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => _return($scope, $scope.d)); function $valueChange($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js index adf917acab..bccd678d09 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13323 (min) 5140 (brotli) +// total: 13406 (min) 5156 (brotli) // tags/custom-tag.marko: 225 (min) 153 (brotli) const $x__OR__y = /* @__PURE__ */ _or(9, _script("b0", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.h + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js index 02cc05b50a..51e4723ccb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13309 (min) 5140 (brotli) +// total: 13392 (min) 5149 (brotli) // tags/custom-tag.marko: 173 (min) 143 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(2); const $input_content__OR__input_name__OR__x = /* @__PURE__ */ _or(8, ($scope) => $dynamicTag($scope, $scope.f, () => ({ diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js index 01d3b033f8..8103117d81 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13221 (min) 5106 (brotli) +// total: 13304 (min) 5120 (brotli) // tags/custom-tag.marko: 160 (min) 143 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(2, 0, 0, 1); const $input_content__OR__x = /* @__PURE__ */ _or(7, ($scope) => $dynamicTag($scope, $scope.f, () => [$scope.g])); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js index cdf7a5eab8..87bade3474 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-separate-assets/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1611 (min) 869 (brotli) +// total: 1877 (min) 953 (brotli) // template.marko: 35 (min) 39 (brotli) const $setup__script = _script("a0", ($scope) => console.log("hi")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js index a2718d9169..c9b88f8012 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3007 (min) 1485 (brotli) +// total: 3089 (min) 1491 (brotli) // tags/counter.marko: 164 (min) 127 (brotli) const $x__script = _script("b1", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js index 2d08a51a43..2c7cbe9010 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1882 (min) 986 (brotli) +// total: 2148 (min) 1090 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.b.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js index 4a158a9824..7fababbef9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2992 (min) 1521 (brotli) +// total: 3074 (min) 1529 (brotli) // tags/child.marko: 136 (min) 111 (brotli) const $input_extra__OR__x = /* @__PURE__ */ _or(6, ($scope) => _return($scope, $scope.f + $scope.e)); const $x__script = _script("b0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js index e00a0d2a7e..4f3e3fdd5f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2758 (min) 1403 (brotli) +// total: 2840 (min) 1411 (brotli) // tags/child.marko: 115 (min) 94 (brotli) const $x__script = _script("b0", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js index 996a5216da..91dc80bf8a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1614 (min) 870 (brotli) +// total: 1880 (min) 953 (brotli) // template.marko: 38 (min) 42 (brotli) const $x__OR__y = /* @__PURE__ */ _or(2, _script("a0", ($scope) => console.log($scope.a, $scope.b))); diff --git a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js index 970e529105..ec171c907b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 9163 (min) 3793 (brotli) +// total: 9439 (min) 3875 (brotli) // template.marko: 272 (min) 173 (brotli) const $Child_content2__input__script = _script("a1", ($scope) => _attrs_script($scope, "a")); const $if_content__value_class = /* @__PURE__ */ _closure_get(2, ($scope) => _attr_class($scope.a, $scope._._.c), ($scope) => $scope._._); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js index 6f200b57b2..2ccf9264f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13148 (min) 5067 (brotli) +// total: 13231 (min) 5079 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $input_thing_selected = /* @__PURE__ */ _const(5, ($scope) => _attr_class_item($scope.a, "selected", $scope.f)); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js index d14fe704cf..ec1b22e683 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2715 (min) 1396 (brotli) +// total: 2797 (min) 1406 (brotli) // template.marko: 161 (min) 128 (brotli) const $myObj = ($scope, myObj) => _text($scope.a, JSON.stringify(myObj)); const $x__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js index d54cc8f9d8..a4f72b6629 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2687 (min) 1377 (brotli) +// total: 2769 (min) 1386 (brotli) // template.marko: 133 (min) 113 (brotli) const $MyTag_content__c = ($scope, c) => _text($scope.c, c); const $x__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js index fd90564608..5aa540511a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2687 (min) 1376 (brotli) +// total: 2769 (min) 1385 (brotli) // template.marko: 133 (min) 113 (brotli) const $MyTag_content__number = ($scope, number) => _text($scope.a, number); const $x__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js index eb4f202d7a..639beec0b6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6488 (min) 2973 (brotli) +// total: 6570 (min) 2985 (brotli) // template.marko: 276 (min) 193 (brotli) const $MyTag_content__walks = "D l", $MyTag_content__template = "
"; const $if_content__setup = ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js index e224a1fd35..b1adafcfa1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6090 (min) 2813 (brotli) +// total: 6172 (min) 2824 (brotli) // template.marko: 271 (min) 193 (brotli) const $MyTag_content__walks = "Db%l", $MyTag_content__template = "
Hello
"; const $MyTag_content__value = ($scope, value) => _text($scope.a, value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js index 5f431afd9b..183a1496c4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2687 (min) 1374 (brotli) +// total: 2769 (min) 1387 (brotli) // template.marko: 133 (min) 113 (brotli) const $MyTag_content__count = ($scope, count) => _text($scope.b, count); const $count__script = _script("a1", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js index 28baf2fe6f..cfe9444267 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2669 (min) 1368 (brotli) +// total: 2751 (min) 1379 (brotli) // template.marko: 115 (min) 95 (brotli) const $MyTag_content__y__script = _script("a1", ($scope) => _on($scope.c, "click", function() { $MyTag_content__y($scope, $scope.h + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js index 5966cd6fb1..ff97b94209 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4688 (min) 1984 (brotli) +// total: 4954 (min) 2055 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js index 5966cd6fb1..ff97b94209 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4688 (min) 1984 (brotli) +// total: 4954 (min) 2055 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js index 772c89100d..15a8a82f11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7521 (min) 3127 (brotli) +// total: 7603 (min) 3135 (brotli) // tags/child.marko: 62 (min) 53 (brotli) const $valueChange2__script = _script("b1", ($scope) => $scope.d(2)); const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js index 5966cd6fb1..ff97b94209 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4688 (min) 1984 (brotli) +// total: 4954 (min) 2055 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js index bc769116e7..2d966fa443 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7218 (min) 3324 (brotli) +// total: 7300 (min) 3321 (brotli) // tags/store.marko: 182 (min) 112 (brotli) const $list$1 = /* @__PURE__ */ _let(3, ($scope) => _return($scope, { list: $scope.d, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js index cdc4e0509d..8f073ca02d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5942 (min) 2720 (brotli) +// total: 6024 (min) 2734 (brotli) // template.marko: 228 (min) 141 (brotli) const $if_content2__setup = ($scope) => _text($scope.a, $scope.$.x); const $if_content__setup = ($scope) => _text($scope.a, $scope.$.x); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js index 966c31a1a8..9407dde274 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5742 (min) 2697 (brotli) +// total: 5824 (min) 2709 (brotli) // template.marko: 275 (min) 150 (brotli) _enable_catch(); const $if_content__a = /* @__PURE__ */ _closure_get(2, ($scope) => _text($scope.a, $scope._._.c), ($scope) => $scope._._); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js index b49f4904f6..13066be6ce 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1569 (min) 842 (brotli) +// total: 1835 (min) 933 (brotli) // template.marko: 63 (min) 67 (brotli) function $bar($scope) { return function(test) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js index 0720d66c8c..616a76a642 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3146 (min) 1576 (brotli) +// total: 3228 (min) 1582 (brotli) // template.marko: 170 (min) 105 (brotli) const $if_content2__c = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.c, $scope._._.e), ($scope) => $scope._._); const $customtag_content__c = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.c, $scope._.e)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js index 282a03107c..c88f09f409 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5999 (min) 2695 (brotli) +// total: 6081 (min) 2703 (brotli) // template.marko: 268 (min) 177 (brotli) let sideEffect = 3; const $MyThing_content__count = /* @__PURE__ */ _closure_get(1, ($scope) => _text($scope.a, $scope._.b)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js index b0aa4d51ba..4712d5d9d9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2662 (min) 1369 (brotli) +// total: 2744 (min) 1377 (brotli) // template.marko: 104 (min) 98 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", $scope.c <= 1 ? () => { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js index 980cb36aca..82cab0a647 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13088 (min) 5048 (brotli) +// total: 13171 (min) 5055 (brotli) // template.marko: 208 (min) 153 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("a0", "body content", "b")); const $tagName__OR__className = /* @__PURE__ */ _or(4, ($scope) => $dynamicTag($scope, $scope.c, () => ({ class: $scope.d }))); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js index 58d8687692..9710fa6e3a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12960 (min) 4998 (brotli) +// total: 13043 (min) 5010 (brotli) // template.marko: 220 (min) 139 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("a1", "body content", "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js index 053e031ceb..2c0271c830 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13924 (min) 5372 (brotli) +// total: 14007 (min) 5373 (brotli) // tags/custom-tag.marko: 0 (min) 1 (brotli) const $template = "
Child:
"; const $walks = "Db%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js index d111f739dd..3c9ff8d4ce 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13749 (min) 5296 (brotli) +// total: 13832 (min) 5309 (brotli) // tags/custom-tag.marko: 0 (min) 1 (brotli) const $template = "
"; const $walks = "D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js index 67369be3ef..119a26e2fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2947 (min) 1480 (brotli) +// total: 3029 (min) 1492 (brotli) // template.marko: 118 (min) 99 (brotli) const $className__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $className($scope, $scope.c === "A" ? "B" : "A"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js index 6ae4bace54..1c8f1e6dd6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13774 (min) 5319 (brotli) +// total: 13857 (min) 5326 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = "
Id is
"; const $walks = "Db%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js index ae4f1b3c48..f03a02f3d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14011 (min) 5395 (brotli) +// total: 14094 (min) 5404 (brotli) // tags/child1.marko: 0 (min) 1 (brotli) const $template$1 = "
Child 1 has
"; const $walks$1 = "Db%l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js index ea977dab36..0af6699348 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13093 (min) 5046 (brotli) +// total: 13176 (min) 5050 (brotli) // tags/my-tag.marko: 159 (min) 129 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js index 8d0cdbbf8e..c65a3675c0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6238 (min) 2569 (brotli) +// total: 6514 (min) 2655 (brotli) // tags/wrapper.marko: 53 (min) 52 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("b0", "hi", "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js index 7a6735be70..8f17e47454 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13794 (min) 5311 (brotli) +// total: 13877 (min) 5322 (brotli) // tags/custom-tag.marko: 0 (min) 1 (brotli) const $template = "
"; const $walks = "D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js index 60bbf253f4..abfd4bfc91 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 12936 (min) 4972 (brotli) +// total: 13019 (min) 4983 (brotli) // template.marko: 162 (min) 129 (brotli) const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("a0", "Body Content", "b")); const $x__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js index 8d0cdbbf8e..c65a3675c0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6238 (min) 2569 (brotli) +// total: 6514 (min) 2655 (brotli) // tags/wrapper.marko: 53 (min) 52 (brotli) _resume_dynamic_tag(); const $dynamicTag = /* @__PURE__ */ _dynamic_tag(0, _content_resume("b0", "hi", "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js index 3a261dce58..385ae2550d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2861 (min) 1439 (brotli) +// total: 2943 (min) 1448 (brotli) // tags/counter.marko: 164 (min) 127 (brotli) const $x__script = _script("b1", ($scope) => _on($scope.a, "click", function() { $x($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js index d171d45a46..6b5b115b05 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4103 (min) 1905 (brotli) +// total: 4369 (min) 1993 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.b.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js index 643f1b41f5..9ab2d061ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1627 (min) 863 (brotli) +// total: 1893 (min) 945 (brotli) // template.marko: 112 (min) 51 (brotli) const $data = _var_resume("a3", ($scope, data1) => {}); const $data2 = _var_resume("a0", ($scope, data2) => {}); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js index 28fc1f4e58..cc9dfd4ac4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13199 (min) 5065 (brotli) +// total: 13282 (min) 5078 (brotli) // tags/counter.marko: 100 (min) 85 (brotli) const $template = ""; const $walks = " D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js index 2191d44273..e0a375df0f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6333 (min) 2888 (brotli) +// total: 6415 (min) 2898 (brotli) // template.marko: 256 (min) 164 (brotli) const $if = /* @__PURE__ */ _if(2, "
Hello
", "b"); const $hide__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js index 591a7acd45..0a32125655 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3195 (min) 1598 (brotli) +// total: 3277 (min) 1610 (brotli) // template.marko: 100 (min) 85 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $clickCount($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js index b5ae6a8d20..6ec9eb15c6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2639 (min) 1311 (brotli) +// total: 2905 (min) 1408 (brotli) // template.marko: 128 (min) 95 (brotli) const $setup__script = _script("a0", ($scope) => { $signal($scope, 0).onabort = () => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js index f0ec1baee6..e4904b8ff0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2900 (min) 1459 (brotli) +// total: 2982 (min) 1469 (brotli) // template.marko: 254 (min) 148 (brotli) const $x__OR__direction = /* @__PURE__ */ _or(6, _script("a0", ($scope) => _on($scope.c, "click", function() { if ($scope.f === "up") $x($scope, $scope.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js index cc1717698d..c488c0839e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8051 (min) 3652 (brotli) +// total: 8133 (min) 3675 (brotli) // template.marko: 388 (min) 257 (brotli) const $if_content__last = /* @__PURE__ */ _if_closure(1, 0, ($scope) => _text($scope.a, $scope._.d)); const $if_content__setup = $if_content__last; diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js index 1494abe6af..6283577b94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7398 (min) 3292 (brotli) +// total: 7480 (min) 3305 (brotli) // template.marko: 691 (min) 270 (brotli) function getStringBy() { return "id"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js index 21991cdebd..e823b15c97 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7066 (min) 3243 (brotli) +// total: 7148 (min) 3259 (brotli) // template.marko: 359 (min) 215 (brotli) const $for_content__name = ($scope, name) => _text($scope.a, name); const $for_content__description = ($scope, description) => _text($scope.b, description); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js index ac7cb9f735..4c180c0130 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6994 (min) 3233 (brotli) +// total: 7076 (min) 3261 (brotli) // template.marko: 188 (min) 151 (brotli) const $for_content__num = /* @__PURE__ */ _for_closure(0, _script("a0", ($scope) => _on($scope.a, "click", function() { $num($scope._, $scope._.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js index a7432f8bc8..478f8c4148 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6934 (min) 3198 (brotli) +// total: 7016 (min) 3216 (brotli) // template.marko: 190 (min) 143 (brotli) const $for_content__items = /* @__PURE__ */ _for_closure(0, _script("a0", ($scope) => _on($scope.a, "click", function() { $scope._.b.textContent = $scope._.c.join(", "); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js index c6c4fa3c5a..c0831a8920 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2001 (min) 1027 (brotli) +// total: 2267 (min) 1125 (brotli) // template.marko: 119 (min) 80 (brotli) const $for = /* @__PURE__ */ _for_of(0, "", " b", _script("a0", ($scope) => _on($scope.a, "click", function() { document.getElementById("el").innerHTML = $scope.M === void 0 ? "index missing" : $scope.M; diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js index 085b5af68e..b57369207d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6743 (min) 3096 (brotli) +// total: 6825 (min) 3106 (brotli) // template.marko: 185 (min) 146 (brotli) const $for = /* @__PURE__ */ _for_of(0, "
", "b"); const $children__script = _script("a0", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js index fd03c26f33..5a4c4aba31 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6737 (min) 3095 (brotli) +// total: 6819 (min) 3107 (brotli) // template.marko: 179 (min) 142 (brotli) const $for = /* @__PURE__ */ _for_of(1, "Child", "b"); const $children__script = _script("a0", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js index 6311d5ee59..f1c838a403 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2877 (min) 1455 (brotli) +// total: 2959 (min) 1464 (brotli) // template.marko: 143 (min) 114 (brotli) const $for_content__count = /* @__PURE__ */ _for_closure(0, ($scope) => _text($scope.b, $scope._.d)); const $count__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js index c328ef27c2..91c8a5efdb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6561 (min) 3044 (brotli) +// total: 6643 (min) 3053 (brotli) // template.marko: 162 (min) 144 (brotli) const $for_content2__setup = ($scope) => _text($scope.a, $scope.M); const $for_content2__val = ($scope, val) => _text($scope.b, val); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js index d624d28318..4191069edb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1662 (min) 892 (brotli) +// total: 1928 (min) 974 (brotli) // template.marko: 92 (min) 80 (brotli) const $baz2 = /* @__PURE__ */ _const(2, _script("a1", ($scope) => $scope.a.textContent = $scope.c.bar())); function $baz($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js index 2c93222df4..9326d8f8da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1865 (min) 941 (brotli) +// total: 2131 (min) 1032 (brotli) // template.marko: 319 (min) 123 (brotli) const $a2 = /* @__PURE__ */ _const(5, _script("a5", ($scope) => $scope.a.textContent = $scope.f.bar() || "missing a")); const $b2 = /* @__PURE__ */ _const(6, _script("a4", ($scope) => $scope.b.textContent = $scope.g.baz() || "missing b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js index 98a0d395f7..8995f83a14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1961 (min) 1018 (brotli) +// total: 2227 (min) 1116 (brotli) // template.marko: 79 (min) 83 (brotli) function updateText(ev) { ev.target.textContent = "after"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js index afa87e5b8d..8907361d65 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1973 (min) 1023 (brotli) +// total: 2239 (min) 1121 (brotli) // template.marko: 97 (min) 80 (brotli) const $onClick3 = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.a, "click", $scope.d))); function $updateText(ev) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js index c7c7b7c036..22217bf388 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1973 (min) 1025 (brotli) +// total: 2239 (min) 1123 (brotli) // template.marko: 97 (min) 78 (brotli) const $onClick = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.b, "click", $scope.d))); function $updateText(ev) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js index fcda53b2d1..b7ebe82d7d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7006 (min) 3231 (brotli) +// total: 7088 (min) 3249 (brotli) // template.marko: 254 (min) 180 (brotli) const $for_content__item = ($scope, item) => _text($scope.a, item); const $for_content__$params = ($scope, $params2) => $for_content__item($scope, $params2[0]); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js index 0f810367f3..a04f934198 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2242 (min) 1144 (brotli) +// total: 2508 (min) 1237 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js index dd20b1ad89..ce60c68f00 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13613 (min) 5217 (brotli) +// total: 13893 (min) 5311 (brotli) // tags/thing.marko: 0 (min) 1 (brotli) const $template$1 = ""; const $walks = "b%b%c"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js index 827c54b115..d607b1a567 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2352 (min) 1188 (brotli) +// total: 2618 (min) 1279 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js index 6fb97668e6..fa72f34c7b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2398 (min) 1187 (brotli) +// total: 2664 (min) 1280 (brotli) // tags/child.marko: 44 (min) 48 (brotli) function $_return($scope) { return () => $scope.c; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js index 3fc51e6571..4759a745ab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2309 (min) 1173 (brotli) +// total: 2575 (min) 1263 (brotli) // tags/child.marko: 30 (min) 34 (brotli) const $input__script = _script("b0", ($scope) => $scope.b.action()); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js index adba96c9b4..1662478d36 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2186 (min) 1111 (brotli) +// total: 2452 (min) 1207 (brotli) // tags/thing.marko: 21 (min) 25 (brotli) const $input_value__script = _script("c0", ($scope) => $scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js index b641bda9bd..ac5963cab0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2358 (min) 1177 (brotli) +// total: 2624 (min) 1269 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js index c58715bff7..7f6fab943c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14285 (min) 5469 (brotli) +// total: 14565 (min) 5560 (brotli) // tags/child.marko: 59 (min) 63 (brotli) const $template$1 = "
"; const $walks$1 = " b"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js index f87b2d7bd3..98ed1f235b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2352 (min) 1188 (brotli) +// total: 2618 (min) 1279 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js index abd4459380..6193e22948 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2358 (min) 1177 (brotli) +// total: 2624 (min) 1269 (brotli) // tags/child.marko: 59 (min) 63 (brotli) function $_return($scope) { return () => (html) => $scope.a.innerHTML = html; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js index da70ab5715..03b8ad4cf3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1621 (min) 869 (brotli) +// total: 1887 (min) 955 (brotli) // template.marko: 45 (min) 49 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.innerHTML = "Hello World"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js index e9b199042e..91e2cdaf10 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13354 (min) 5116 (brotli) +// total: 13634 (min) 5216 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $template = ""; const $walks = "b%b%c"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js index d3216167f0..df038928e2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2188 (min) 1106 (brotli) +// total: 2454 (min) 1201 (brotli) // template.marko: 236 (min) 141 (brotli) const $el3_getter = _hoist_resume("a0", 0, "Aa", "Ac"); const $el2_getter = _hoist(0, "Ab"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js index 2c0ec26046..ebef9781b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2259 (min) 1117 (brotli) +// total: 2525 (min) 1210 (brotli) // template.marko: 333 (min) 149 (brotli) const $el_getter = _hoist_resume("a0", 0, "Aa", "Ad"); const $for_content__$el_getter = _hoist_resume("a1", 0, "Aa"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js index 22b0db4c82..0c10f4b526 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1781 (min) 920 (brotli) +// total: 2047 (min) 1008 (brotli) // tags/child.marko: 30 (min) 34 (brotli) const $input__script = _script("b0", ($scope) => $scope.b.action()); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js index 0b11741835..90b512f518 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2033 (min) 1046 (brotli) +// total: 2299 (min) 1145 (brotli) // tags/child.marko: 49 (min) 53 (brotli) const $input__script = _script("b0", ($scope) => $scope.b.value().innerHTML = "mounted"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js index 1e0efc927b..2e0cc5ccc7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2238 (min) 1135 (brotli) +// total: 2504 (min) 1226 (brotli) // tags/child.marko: 67 (min) 71 (brotli) let id = 0; const $input__script = _script("b0", ($scope) => $scope.b.value()?.classList.add(`child${id++}`)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js index 9773c262b2..344ba80f4b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2010 (min) 1046 (brotli) +// total: 2276 (min) 1135 (brotli) // template.marko: 136 (min) 86 (brotli) const $if_content2__hoist3_getter = _hoist_resume("a3", 0); const $hoist1_getter = _hoist_resume("a2", 4); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js index 83aa500a9b..745957ba83 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2183 (min) 1111 (brotli) +// total: 2449 (min) 1210 (brotli) // tags/child.marko: 39 (min) 43 (brotli) const $input__script = _script("b0", ($scope) => $scope.a.innerHTML = $scope.c.y()); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js index 03d2ca57b8..8572d5a8ec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2705 (min) 1384 (brotli) +// total: 2787 (min) 1393 (brotli) // template.marko: 172 (min) 124 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.d + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js index d4bef19204..12defbc870 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2463 (min) 1276 (brotli) +// total: 2545 (min) 1282 (brotli) // tags/parent-el.marko: 82 (min) 74 (brotli) const $tagName = /* @__PURE__ */ _let(1, ($scope) => _return($scope, $scope.b)); const $setup__script = _script("b0", ($scope) => $tagName($scope, $scope.a.parentElement.tagName)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js index a281f0bb94..e6ebc31e31 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8829 (min) 3704 (brotli) +// total: 8911 (min) 3711 (brotli) // template.marko: 180 (min) 145 (brotli) const $if_content__setup = ($scope) => _attr_nonce($scope, "a"); const $spreadAttrs__script = _script("a1", ($scope) => _attrs_script($scope, "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js index 3ab586f66e..82f543a5d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2806 (min) 1434 (brotli) +// total: 2888 (min) 1441 (brotli) // template.marko: 203 (min) 147 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js index 0c8d55e77d..42d083c552 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8818 (min) 3694 (brotli) +// total: 8900 (min) 3710 (brotli) // template.marko: 169 (min) 133 (brotli) const $if_content__setup = ($scope) => _attr_nonce($scope, "a"); const $spreadAttrs__script = _script("a1", ($scope) => _attrs_script($scope, "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js index fa310f49c8..7d04db17aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2709 (min) 1392 (brotli) +// total: 2791 (min) 1400 (brotli) // template.marko: 152 (min) 126 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.b + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js index 6707d495aa..31465357fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3079 (min) 1541 (brotli) +// total: 3161 (min) 1551 (brotli) // template.marko: 229 (min) 156 (brotli) const $sometimesBar = ($scope, sometimesBar) => _attr($scope.c, "id", sometimesBar); const $bar__OR__baz = /* @__PURE__ */ _or(6, _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js index 231e179619..d96c275def 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5741 (min) 2660 (brotli) +// total: 5823 (min) 2668 (brotli) // template.marko: 113 (min) 99 (brotli) const $if = /* @__PURE__ */ _if(1, "hi", "b"); const $show__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js index 4d294d197c..8a7216c833 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5904 (min) 2720 (brotli) +// total: 5986 (min) 2729 (brotli) // tags/child.marko: 213 (min) 172 (brotli) const $if_content__text = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.c)); const $if = /* @__PURE__ */ _if(0, "
", "D l", $if_content__text); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js index 7d35769d8e..4864813683 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5876 (min) 2696 (brotli) +// total: 5958 (min) 2715 (brotli) // template.marko: 166 (min) 129 (brotli) const $if = /* @__PURE__ */ _if(3, 0, 0, _script("a0", ($scope) => $scope._.a.textContent = "Hit")); const $count__script = _script("a1", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js index d9a2c23072..bc96755e33 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2972 (min) 1495 (brotli) +// total: 3054 (min) 1502 (brotli) // template.marko: 150 (min) 115 (brotli) const $for_content__selected = /* @__PURE__ */ _for_closure(0, ($scope) => _attr($scope.a, "data-selected", $scope._.b === $scope.M)); const $selected__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js index c66d23f102..bbc290e105 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2959 (min) 1481 (brotli) +// total: 3041 (min) 1494 (brotli) // template.marko: 141 (min) 105 (brotli) const $for_content__selected = /* @__PURE__ */ _for_closure(0, ($scope) => _attr($scope.a, "selected", $scope._.b === $scope.M)); const $selected = /* @__PURE__ */ _let(1, $for_content__selected); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js index 41955db0a7..be8c5f960e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2766 (min) 1417 (brotli) +// total: 2848 (min) 1426 (brotli) // template.marko: 110 (min) 93 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.f)); const $value = /* @__PURE__ */ _let(5, $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js index 41955db0a7..be8c5f960e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2766 (min) 1417 (brotli) +// total: 2848 (min) 1426 (brotli) // template.marko: 110 (min) 93 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.f)); const $value = /* @__PURE__ */ _let(5, $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js index 7d087f3130..ee89e4c582 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6290 (min) 2891 (brotli) +// total: 6372 (min) 2909 (brotli) // template.marko: 259 (min) 181 (brotli) const $if_content2__input_name = /* @__PURE__ */ _closure_get(4, ($scope) => _text($scope.a, $scope._._.e || "Fallback"), ($scope) => $scope._._); const $if_content__if = /* @__PURE__ */ _if(0, "
", "D l", $if_content2__input_name); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js index cfd50dec14..4c84ad3b58 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6136 (min) 2812 (brotli) +// total: 6218 (min) 2827 (brotli) // tags/test.marko: 0 (min) 1 (brotli) const $Tag_content__walks = "b%c", $Tag_content__template = ""; const $template = /* @__PURE__ */ ((_w0) => `${_w0}`)($Tag_content__template); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js index 91e5adc317..823e6efd54 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1967 (min) 1029 (brotli) +// total: 2233 (min) 1121 (brotli) // template.marko: 85 (min) 72 (brotli) const $MyButton_content__input_message = /* @__PURE__ */ _const(3, _script("a1", ($scope) => _on($scope.a, "click", function() { $scope._.a.textContent += `[onClick(${$scope.d})]`; diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js index f6d38aedf5..7f180fde32 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4712 (min) 1987 (brotli) +// total: 4978 (min) 2063 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $htmlInput__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js index 8b9c67c1bd..161cb51124 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1710 (min) 898 (brotli) +// total: 1976 (min) 987 (brotli) // template.marko: 140 (min) 88 (brotli) const $Child_content__a__script = _script("a2", ($scope) => { if ($scope.e !== "a") throw new Error("did not serialize a"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js index 1a4ab68d50..abc7eb7306 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2787 (min) 1426 (brotli) +// total: 2869 (min) 1436 (brotli) // template.marko: 165 (min) 129 (brotli) const $user = /* @__PURE__ */ _let(3, ($scope) => $user_id($scope, $scope.d?.id)); const $index__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js index 721e3d1b28..37b9fae50f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7399 (min) 3392 (brotli) +// total: 7481 (min) 3409 (brotli) // tags/store.marko: 182 (min) 112 (brotli) const $list$1 = /* @__PURE__ */ _let(3, ($scope) => _return($scope, { list: $scope.d, diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js index 542a1123f8..2200b93d12 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3308 (min) 1660 (brotli) +// total: 3390 (min) 1670 (brotli) // tags/let-global.marko: 234 (min) 178 (brotli) const subsByKey = {}; const $value = /* @__PURE__ */ _let(3, ($scope) => _return($scope, $scope.d)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js index 241bd9390b..737e4f279b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3035 (min) 1540 (brotli) +// total: 3117 (min) 1547 (brotli) // template.marko: 259 (min) 181 (brotli) const $Let_content__internal = /* @__PURE__ */ _let(0, ($scope) => _return($scope, $scope.a)); const $a__OR__b__script = _script("a3", ($scope) => _on($scope.c, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js index c2152de44c..3b0ffe2bef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3266 (min) 1589 (brotli) +// total: 3348 (min) 1596 (brotli) // tags/child.marko: 291 (min) 140 (brotli) const $state__script = _script("b2", ($scope) => _on($scope.a, "click", function() { $state($scope, $scope.o + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js index 52b0fe6cb9..acc19cd230 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2922 (min) 1472 (brotli) +// total: 3004 (min) 1485 (brotli) // template.marko: 287 (min) 173 (brotli) const $y__script = _script("a2", ($scope) => _on($scope.a, "click", function() { $y($scope, $scope.h + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js index 96d654a436..96bef422b9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2865 (min) 1453 (brotli) +// total: 2947 (min) 1466 (brotli) // template.marko: 219 (min) 149 (brotli) const $y__script = _script("a1", ($scope) => _on($scope.a, "click", function() { $y($scope, $scope.g + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js index 402f2e9994..febc9be5d9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2748 (min) 1402 (brotli) +// total: 2830 (min) 1413 (brotli) // template.marko: 203 (min) 135 (brotli) const $y__script = _script("a1", ($scope) => _on($scope.a, "click", function() { $y($scope, $scope.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js index a512a1172c..7c67601236 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2652 (min) 1362 (brotli) +// total: 2734 (min) 1372 (brotli) // template.marko: 94 (min) 87 (brotli) const $b__script = _script("a0", ($scope) => _on($scope.a, "click", () => $b($scope, $scope.g + 1) - 1)); const $b = /* @__PURE__ */ _let(6, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js index 7e3564e737..97e936481d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2367 (min) 1239 (brotli) +// total: 2449 (min) 1244 (brotli) // template.marko: 106 (min) 97 (brotli) const $x__script = _script("a0", ($scope) => { $y($scope, $scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js index d40b3efadd..a31bb8ab1b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2946 (min) 1490 (brotli) +// total: 3028 (min) 1499 (brotli) // template.marko: 237 (min) 151 (brotli) const $a = ($scope, a) => _text($scope.e, a); const $y__OR__z = /* @__PURE__ */ _or(8, ($scope) => $a($scope, $scope.g + $scope.h)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js index 0126e094a8..7b78031e9c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2793 (min) 1424 (brotli) +// total: 2875 (min) 1433 (brotli) // template.marko: 141 (min) 109 (brotli) const $x__OR__y = /* @__PURE__ */ _or(5, _script("a0", ($scope) => _on($scope.a, "click", () => $x($scope, $y($scope, $scope.d + $scope.e))))); const $x = /* @__PURE__ */ _let(3, ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js index 4293be61ce..2b0efa7fe2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2338 (min) 1227 (brotli) +// total: 2420 (min) 1233 (brotli) // template.marko: 70 (min) 65 (brotli) const $x = /* @__PURE__ */ _let(1, ($scope) => _text($scope.a, $scope.b)); const $setup__script = _script("a0", ($scope) => $x($scope, "Client Only")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js index c6e8f78ed8..cbd057ad89 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1622 (min) 872 (brotli) +// total: 1888 (min) 955 (brotli) // template.marko: 46 (min) 50 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.classList.add("mounted")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js index fd0ffff869..64dff60b12 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-pagehide/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2944 (min) 1466 (brotli) +// total: 3026 (min) 1477 (brotli) // template.marko: 246 (min) 124 (brotli) const $count = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js index 17aa0e57eb..3ea6a98fff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3002 (min) 1512 (brotli) +// total: 3084 (min) 1527 (brotli) // template.marko: 227 (min) 145 (brotli) const $x__script = _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js index 2fbdc10d88..49095a5fdc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6434 (min) 2878 (brotli) +// total: 6516 (min) 2890 (brotli) // template.marko: 483 (min) 204 (brotli) const $if_content__x = /* @__PURE__ */ _if_closure(0, 0, _script("a0", ($scope) => _lifecycle($scope, { onMount: function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js index 22a5969c3b..c28855cc6f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2626 (min) 1361 (brotli) +// total: 2708 (min) 1367 (brotli) // template.marko: 134 (min) 108 (brotli) const $x = /* @__PURE__ */ _let(1, ($scope) => _text($scope.a, $scope.b)); const $setup__script = _script("a0", ($scope) => _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js index f68ddaca0a..079d4d73bc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2930 (min) 1477 (brotli) +// total: 3012 (min) 1486 (brotli) // template.marko: 232 (min) 142 (brotli) const $x = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js index 642407f37a..5d78761679 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2943 (min) 1462 (brotli) +// total: 3025 (min) 1470 (brotli) // template.marko: 245 (min) 121 (brotli) const $x = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { _lifecycle($scope, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js index 08724fa071..a8dba72f87 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1611 (min) 864 (brotli) +// total: 1877 (min) 948 (brotli) // template.marko: 35 (min) 39 (brotli) const $item_content__item__script = _script("a0", ($scope) => $scope.a.innerHTML = $scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js index 59329c9198..3ab92522d6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2392 (min) 1249 (brotli) +// total: 2474 (min) 1257 (brotli) // template.marko: 124 (min) 93 (brotli) const $B_content__value_length = ($scope, value_length) => $A_content__value($scope.a, value_length); const $B_content__tag_input_value = ($scope, value) => $B_content__value_length($scope, value?.length); diff --git a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js index 8f674ee1bc..739696f12b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2326 (min) 1221 (brotli) +// total: 2408 (min) 1228 (brotli) // template.marko: 58 (min) 57 (brotli) const $x = /* @__PURE__ */ _let(1, ($scope) => _text($scope.a, $scope.b)); const $setup__script = _script("a0", ($scope) => $x($scope, 2)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js index d0b4d0d5ab..d3f8b7df7b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3057 (min) 1530 (brotli) +// total: 3139 (min) 1537 (brotli) // template.marko: 144 (min) 130 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js index 138bf533d7..92be5747ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4163 (min) 1963 (brotli) +// total: 4245 (min) 1974 (brotli) // template.marko: 302 (min) 170 (brotli) const $count__OR__$valueChange = /* @__PURE__ */ _or(5, ($scope) => { _attr_input_value($scope, "b", $scope.d, $scope.e); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js index 70330f375c..40cb40d8a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3125 (min) 1546 (brotli) +// total: 3207 (min) 1555 (brotli) // tags/2counters.marko: 196 (min) 123 (brotli) const $count__script = _script("b1", ($scope) => _on($scope.a, "click", function() { $count$1($scope, $scope.m + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js index c1e9960684..10e94108d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13760 (min) 5288 (brotli) +// total: 13844 (min) 5304 (brotli) // template.marko: 623 (min) 305 (brotli) const $Child_content2 = _content_resume("a1", "Hi", "b"); const $Child_content = _content_resume("a0", "Hi", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js index 716228027b..3b2652a9b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14273 (min) 5551 (brotli) +// total: 14356 (min) 5561 (brotli) // template.marko: 390 (min) 236 (brotli) const $item_content = /* @__PURE__ */ _content_closures(_content_resume("a2", " ", " b"), { 4($scope) { _text($scope.a, $scope.e); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js index f13aed2950..94dabf2eaa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1739 (min) 935 (brotli) +// total: 2005 (min) 1020 (brotli) // template.marko: 64 (min) 64 (brotli) const $btn_getter = _el("a0", 0); const $setup__script = _script("a1", ($scope) => $btn_getter($scope)().textContent = "after"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js index 98d42d3f37..8d60f57870 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1619 (min) 869 (brotli) +// total: 1885 (min) 954 (brotli) // template.marko: 43 (min) 47 (brotli) const $if = /* @__PURE__ */ _if(1, 0, 0, _script("a0", ($scope) => $scope._.a.textContent = "hello")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js index a78bf14bea..9d4570fe74 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1730 (min) 926 (brotli) +// total: 1996 (min) 1017 (brotli) // tags/hello-setter.marko: 43 (min) 47 (brotli) const $el__script = _script("b0", ($scope) => $scope.c().textContent = "hello"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js index dc87fc1f19..cbeb17ab03 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1617 (min) 868 (brotli) +// total: 1883 (min) 952 (brotli) // template.marko: 41 (min) 45 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.textContent = "hello"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js index 28ab8e3820..6d2d112182 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6369 (min) 2608 (brotli) +// total: 6645 (min) 2700 (brotli) // tags/my-div.marko: 205 (min) 82 (brotli) const $CustomContent_content = _content_resume("b0", "Custom content", "b"); const $input__OR__CustomContent_content__script = _script("b1", ($scope) => _attrs_script($scope, "f")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js index 038853db65..4f412c4c3e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1622 (min) 872 (brotli) +// total: 1888 (min) 956 (brotli) // template.marko: 46 (min) 50 (brotli) const $setup__script = _script("a0", ($scope) => $scope.a.innerHTML += "Hello World"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js index be06a9f848..fb0e876b98 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2712 (min) 1384 (brotli) +// total: 2794 (min) 1398 (brotli) // template.marko: 168 (min) 126 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $lastCount2($scope, $lastCount($scope, $clickCount($scope, $scope.e + 1) - 1)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js index 6f1cd583f1..a3a42be4a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8424 (min) 3802 (brotli) +// total: 8506 (min) 3819 (brotli) // template.marko: 610 (min) 339 (brotli) const $else_content__count = /* @__PURE__ */ _if_closure(0, 1, ($scope) => _text($scope.b, $scope._.c)); const $else_content__setup__script = _script("a1", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js index dd695f150a..ab044e778a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2185 (min) 1134 (brotli) +// total: 2451 (min) 1229 (brotli) // tags/child.marko: 89 (min) 93 (brotli) const $input__OR__x = /* @__PURE__ */ _or(6, _script("b1", ($scope) => $scope.d.output().innerHTML = $scope.f)); const $x = _var_resume("b0", /* @__PURE__ */ _const(5, $input__OR__x)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js index dd695f150a..ab044e778a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2185 (min) 1134 (brotli) +// total: 2451 (min) 1229 (brotli) // tags/child.marko: 89 (min) 93 (brotli) const $input__OR__x = /* @__PURE__ */ _or(6, _script("b1", ($scope) => $scope.d.output().innerHTML = $scope.f)); const $x = _var_resume("b0", /* @__PURE__ */ _const(5, $input__OR__x)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js index 45145ccef3..244cb2b4e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3609 (min) 1751 (brotli) +// total: 3691 (min) 1764 (brotli) // template.marko: 468 (min) 214 (brotli) const $ChildB_content__$pattern = ($scope, $pattern2) => $ChildB_content__$bar($scope, $pattern2.bar); const $ChildB_content__count__OR__$foo = /* @__PURE__ */ _or(10, ($scope) => $ChildB_content__$pattern($scope, void 0 !== $scope.g ? $scope.g : { bar: $scope._.h + 2 })); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js index 234ca0c667..f4ce387d6a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5648 (min) 2617 (brotli) +// total: 5730 (min) 2637 (brotli) // template.marko: 132 (min) 119 (brotli) const $if_content__mounted = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.b && "C")); const $if = /* @__PURE__ */ _if(0, "ABD", "b%c", $if_content__mounted); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js index ab4bc1fd94..672ede6d12 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6344 (min) 2609 (brotli) +// total: 6620 (min) 2699 (brotli) // tags/my-button.marko: 38 (min) 42 (brotli) const $input__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js index 49948cf441..236afc0d7c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2676 (min) 1374 (brotli) +// total: 2758 (min) 1383 (brotli) // template.marko: 118 (min) 99 (brotli) const $double = ($scope, double) => _text($scope.b, double); const $count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js index 682f145c07..f313b27933 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2692 (min) 1375 (brotli) +// total: 2774 (min) 1382 (brotli) // template.marko: 134 (min) 104 (brotli) const $clickCount__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $scope.c.innerHTML = $clickCount($scope, $scope.e + 1) - 1; diff --git a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js index fc4d63d1e9..cdb380120e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2759 (min) 1382 (brotli) +// total: 2841 (min) 1390 (brotli) // template.marko: 213 (min) 112 (brotli) const $count__script = _script("a0", ($scope) => { _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js index a43f0ae2b5..74cc0dc765 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1827 (min) 964 (brotli) +// total: 2093 (min) 1065 (brotli) // template.marko: 80 (min) 84 (brotli) const $Tag_content2 = /* @__PURE__ */ _content("a2", 0, 0, /* @__PURE__ */ _closure_get(2, _script("a1", ($scope) => console.log(_assert_init($scope._, "c"))))); const $name = _var_resume("a3", /* @__PURE__ */ _const(2)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js index 3976283eff..593e9c5859 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4688 (min) 1984 (brotli) +// total: 4954 (min) 2055 (brotli) // template.marko: 38 (min) 42 (brotli) const $if_content__rest__script = _script("a0", ($scope) => _attrs_script($scope, "b")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js index f9b67629ee..21585ac51d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7574 (min) 3475 (brotli) +// total: 7656 (min) 3487 (brotli) // template.marko: 272 (min) 195 (brotli) const $for_content__if = /* @__PURE__ */ _if(0, "
b
", "b"); const $for_content__items_length = /* @__PURE__ */ _for_closure(0, ($scope) => $for_content__if($scope, $scope._.f > 1 ? 0 : 1)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js index 691cff985b..a07abd1b55 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2722 (min) 1381 (brotli) +// total: 2804 (min) 1393 (brotli) // tags/setter.marko: 56 (min) 60 (brotli) const $input_value__OR__setter = /* @__PURE__ */ _or(5, ($scope) => _return($scope, ($scope.d, $scope.e))); const $input_value = /* @__PURE__ */ _const(3, $input_value__OR__setter); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js index f7556aed60..50a595d3d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3364 (min) 1680 (brotli) +// total: 3446 (min) 1672 (brotli) // tags/my-let.marko: 83 (min) 74 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => _return($scope, $scope.d)); function $valueChange($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js index fa025620a6..d29f4c545a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1834 (min) 979 (brotli) +// total: 2100 (min) 1070 (brotli) // tags/getter.marko: 43 (min) 47 (brotli) function $getter() { return "hello"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js index d7b4675d96..d7a06259ba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3297 (min) 1599 (brotli) +// total: 3379 (min) 1608 (brotli) // template.marko: 598 (min) 241 (brotli) const $Twice_content__value__OR__call = /* @__PURE__ */ _or(4, ($scope) => _return($scope, $_return2($scope))); const $Twice_content__call = /* @__PURE__ */ _let(3, $Twice_content__value__OR__call); diff --git a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js index 399f7e5f60..03b6db3a75 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2748 (min) 1401 (brotli) +// total: 2830 (min) 1409 (brotli) // template.marko: 194 (min) 131 (brotli) function createWrapper(a) { return { a }; diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js index cc9adbd430..6afd81ec85 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-no-references/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1784 (min) 935 (brotli) +// total: 2050 (min) 1024 (brotli) // template.marko: 116 (min) 81 (brotli) const $setup__script = _script("a0", ($scope) => { { diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js index 6e8541b933..0271aa17a5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1751 (min) 927 (brotli) +// total: 2017 (min) 1012 (brotli) // template.marko: 181 (min) 117 (brotli) const $setText2 = /* @__PURE__ */ _const(1, _script("a1", ($scope) => $scope.b())); function $setText($scope) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js index 8bb9cc5b94..fa7ddab868 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 1640 (min) 879 (brotli) +// total: 1906 (min) 962 (brotli) // template.marko: 64 (min) 58 (brotli) const $x = /* @__PURE__ */ _let(0, _script("a0", ($scope) => document.getElementById("ref").textContent = $scope.a)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js index d2bdc5146b..2cc15e11b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2742 (min) 1405 (brotli) +// total: 2824 (min) 1410 (brotli) // template.marko: 184 (min) 133 (brotli) const $sum = ($scope, sum) => _text($scope.b, sum()); const $items__script = _script("a0", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js index 0a8576607c..b42344527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1952 (min) 1011 (brotli) +// total: 2218 (min) 1109 (brotli) // template.marko: 70 (min) 71 (brotli) const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $scope.a.innerHTML = "clicked"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js index cd625d5c19..3354d18ff9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1661 (min) 882 (brotli) +// total: 1927 (min) 968 (brotli) // template.marko: 85 (min) 63 (brotli) const $promise = /* @__PURE__ */ _const(0, _script("a0", ($scope) => (async () => { document.getElementById("ref").textContent = await $scope.a; diff --git a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js index a97a5e407c..5c4ac3af15 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2897 (min) 1427 (brotli) +// total: 2979 (min) 1433 (brotli) // template.marko: 384 (min) 156 (brotli) const $count4__script = _script("a3", ($scope) => _on($scope.a, "click", function() { $count4($scope, $scope.i + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js index ecbe4dfb8e..28020aab8d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3216 (min) 1497 (brotli) +// total: 3482 (min) 1591 (brotli) // tags/child.marko: 58 (min) 62 (brotli) const $input_option__script = _script("b0", ($scope) => $scope.a.innerHTML = Object.keys($scope.d).join(",")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js index 752a820cbf..75da1fc05c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6543 (min) 2673 (brotli) +// total: 6819 (min) 2767 (brotli) // template.marko: 349 (min) 164 (brotli) const $MyButton_content2 = _content_resume("a5", "Click Me", "b"); const $MyButton_content__input_onClick = /* @__PURE__ */ _const(3, _script("a4", ($scope) => _on($scope.a, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js index 174d77bac5..67a577d2aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6318 (min) 2593 (brotli) +// total: 6594 (min) 2686 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $for_content__option__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js index 7cc040a618..2959cfba65 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6318 (min) 2592 (brotli) +// total: 6594 (min) 2681 (brotli) // template.marko: 136 (min) 79 (brotli) const $option_content3 = _content_resume("a5", "Three", "b"); const $option_content2 = _content_resume("a4", "Two", "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js index b2ec0d3d8b..1d10f0d4f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6314 (min) 2587 (brotli) +// total: 6590 (min) 2679 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $input_class__OR__rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js index 75c5952c6a..1dc5217cc2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4688 (min) 1984 (brotli) +// total: 4954 (min) 2055 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $input_class__OR__rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js index 29878fb00d..ddf5669728 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 14437 (min) 5685 (brotli) +// total: 14717 (min) 5758 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $template = ""; const $setup = () => {}; diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js index 7eb6a35987..20c141bc1d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4737 (min) 1989 (brotli) +// total: 5003 (min) 2072 (brotli) // tags/child.marko: 38 (min) 42 (brotli) const $input_class__OR__rest__script = _script("b0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js index 4f6a828e89..58e9342286 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4738 (min) 1998 (brotli) +// total: 5004 (min) 2078 (brotli) // template.marko: 94 (min) 81 (brotli) const $rest__script = _script("a1", ($scope) => _attrs_script($scope, "a")); function $onClick(_, el) { diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js index 09d246c101..e9787ee137 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13259 (min) 5120 (brotli) +// total: 13342 (min) 5130 (brotli) // tags/consumer.marko: 175 (min) 131 (brotli) const $if_content__dynamicTag = /* @__PURE__ */ _dynamic_tag(0); const $if_content__input_content = /* @__PURE__ */ _if_closure(1, 0, ($scope) => $if_content__dynamicTag($scope, $scope._.e)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js index b325918e7f..6e8b0f229f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1943 (min) 1011 (brotli) +// total: 2209 (min) 1110 (brotli) // tags/outer.marko: 61 (min) 65 (brotli) const $inner_content__setup__script = _script("c0", ($scope) => _on($scope.a, "click", function() { this.doThing(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js index 4911b0d01e..de51d07ed5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2658 (min) 1364 (brotli) +// total: 2740 (min) 1374 (brotli) // template.marko: 100 (min) 85 (brotli) const $count__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $count($scope, $scope.c + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js index 609d9ac8e6..e732e36a4b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2677 (min) 1376 (brotli) +// total: 2759 (min) 1381 (brotli) // template.marko: 134 (min) 111 (brotli) const $open__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $open($scope, !$scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js index 7ac515e7ea..1aa49f327e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13610 (min) 5265 (brotli) +// total: 13693 (min) 5280 (brotli) // template.marko: 313 (min) 215 (brotli) const $Foo_content2__dynamicTag = /* @__PURE__ */ _dynamic_tag(0, 0, 0, 1); const $Foo_content2__input_content__OR__input_value = /* @__PURE__ */ _or(5, ($scope) => $Foo_content2__dynamicTag($scope, $scope.d, () => [$scope.e])); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js index b4e19af4db..b83e0b85c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2940 (min) 1485 (brotli) +// total: 3022 (min) 1490 (brotli) // template.marko: 410 (min) 233 (brotli) const $a = /* @__PURE__ */ _let(6, ($scope) => _text($scope.b, $scope.g)); const $b = /* @__PURE__ */ _let(7, ($scope) => _text($scope.c, $scope.h)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js index 529d6acc76..8ae865dc2a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2950 (min) 1490 (brotli) +// total: 3032 (min) 1497 (brotli) // template.marko: 356 (min) 205 (brotli) const $obj = /* @__PURE__ */ _let(6, ($scope) => { _text($scope.a, JSON.stringify($scope.g)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js index 5dc7f53fab..03f959a731 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5939 (min) 2718 (brotli) +// total: 6021 (min) 2734 (brotli) // tags/child.marko: 0 (min) 1 (brotli) const $if = /* @__PURE__ */ _if(0, "", "b"); const $input_value = ($scope, input_value) => $if($scope, input_value ? 0 : 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js index 39b337f56a..d154c83e82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2599 (min) 1334 (brotli) +// total: 2681 (min) 1342 (brotli) // template.marko: 125 (min) 87 (brotli) const $clickCount = /* @__PURE__ */ _let(1, _script("a0", ($scope) => { document.getElementById("button").textContent = $scope.b; diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js index 374ee5a8e4..a783eb6396 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3175 (min) 1581 (brotli) +// total: 3257 (min) 1588 (brotli) // template.marko: 115 (min) 94 (brotli) const $value = /* @__PURE__ */ _let(2, ($scope) => _attr_input_value_default($scope, "a", $scope.c)); const $setup__script = _script("a0", ($scope) => _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js index e93d83f663..6d2ca7bd63 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/dom.bundle.js @@ -1,3 +1,3 @@ -// total: 4688 (min) 1984 (brotli) +// total: 4954 (min) 2055 (brotli) // template.marko: 38 (min) 42 (brotli) const $input__script = _script("a0", ($scope) => _attrs_script($scope, "a")); diff --git a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js index 9b41c274f1..e7e02b82fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2726 (min) 1393 (brotli) +// total: 2808 (min) 1396 (brotli) // template.marko: 169 (min) 124 (brotli) const $count__script = _script("a0", ($scope) => { _on($scope.b, "click", function() { diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js index c426142053..ec4e9e2a0b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6716 (min) 3021 (brotli) +// total: 6798 (min) 3038 (brotli) // template.marko: 457 (min) 225 (brotli) const $if_content2__count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope._._, $scope._._.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js index c426142053..ec4e9e2a0b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6716 (min) 3021 (brotli) +// total: 6798 (min) 3038 (brotli) // template.marko: 457 (min) 225 (brotli) const $if_content2__count__script = _script("a0", ($scope) => _on($scope.a, "click", function() { $count($scope._._, $scope._._.e + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js index 6d129dfd64..73c4dfc67b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1975 (min) 1018 (brotli) +// total: 2241 (min) 1111 (brotli) // template.marko: 93 (min) 63 (brotli) const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", function() { document.getElementById("count").textContent++; diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js index 36e383e01a..a67f194ade 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 7245 (min) 3220 (brotli) +// total: 7327 (min) 3230 (brotli) // template.marko: 242 (min) 167 (brotli) const $if_content__value = /* @__PURE__ */ _if_closure(0, 0, ($scope) => _text($scope.a, $scope._.f)); const $if = /* @__PURE__ */ _if(0, " ", "D l", $if_content__value); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js index b59bec84de..74ad1e943d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6500 (min) 2979 (brotli) +// total: 6582 (min) 2982 (brotli) // tags/counter.marko: 251 (min) 156 (brotli) const $template = ""; const $walks = " D l"; diff --git a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js index 93933ecfd9..06ba7d2280 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2755 (min) 1402 (brotli) +// total: 2837 (min) 1410 (brotli) // template.marko: 113 (min) 94 (brotli) const $toggle__script = _script("a0", ($scope) => _on($scope.b, "click", function() { $toggle($scope, !$scope.c); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js index 397a0eb950..783c991785 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 8795 (min) 3849 (brotli) +// total: 8877 (min) 3863 (brotli) // template.marko: 432 (min) 245 (brotli) _enable_catch(); const $await_content__value = ($scope, value) => _text($scope.a, value > 1 ? (() => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js index 26741f4231..1d771029a4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 6934 (min) 3151 (brotli) +// total: 7016 (min) 3156 (brotli) // template.marko: 293 (min) 187 (brotli) _enable_catch(); const $catch_content__err = ($scope, err) => _text($scope.a, err); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js index 4d6cdcbf16..2e6af76aca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 5770 (min) 2644 (brotli) +// total: 6046 (min) 2743 (brotli) // template.marko: 230 (min) 138 (brotli) _enable_catch(); const $catch_content__err_message = ($scope, err_message) => _text($scope.a, err_message); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js index f84dc29705..fbf60e482d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2946 (min) 1481 (brotli) +// total: 3028 (min) 1486 (brotli) // template.marko: 215 (min) 122 (brotli) const $open = /* @__PURE__ */ _let(3, ($scope) => { _attr_details_or_dialog_open_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js index f84dc29705..fbf60e482d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2946 (min) 1481 (brotli) +// total: 3028 (min) 1486 (brotli) // template.marko: 215 (min) 122 (brotli) const $open = /* @__PURE__ */ _let(3, ($scope) => { _attr_details_or_dialog_open_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js index 4c70ea8999..fc336f0e38 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4332 (min) 1997 (brotli) +// total: 4414 (min) 2002 (brotli) // template.marko: 218 (min) 121 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_input_checkedValue_default($scope, "c", $scope.f, "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js index d164535746..f82e7f6085 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3467 (min) 1653 (brotli) +// total: 3549 (min) 1665 (brotli) // template.marko: 188 (min) 118 (brotli) const $checked = /* @__PURE__ */ _let(3, ($scope) => { _attr_input_checked_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js index 50fb852e7c..5c18a71ee4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4326 (min) 1992 (brotli) +// total: 4408 (min) 1996 (brotli) // template.marko: 212 (min) 115 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_input_checkedValue_default($scope, "c", $scope.f, "b"); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js index 7c03eeb6a5..e67e598d69 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 3968 (min) 1876 (brotli) +// total: 4050 (min) 1884 (brotli) // template.marko: 183 (min) 110 (brotli) const $value = /* @__PURE__ */ _let(3, ($scope) => { _attr_input_value_default($scope, "a", $scope.d); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js index f41e91dcb1..63585d3519 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4256 (min) 1934 (brotli) +// total: 4338 (min) 1943 (brotli) // template.marko: 186 (min) 114 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_select_value_default($scope, "c", $scope.f); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js index 9b66da2722..b77803daba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4262 (min) 1940 (brotli) +// total: 4344 (min) 1948 (brotli) // template.marko: 192 (min) 116 (brotli) const $value = /* @__PURE__ */ _let(5, ($scope) => { _attr_select_value_default($scope, "c", $scope.f); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js index f604d32e17..f1490ebfbf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4010 (min) 1884 (brotli) +// total: 4092 (min) 1891 (brotli) // template.marko: 288 (min) 124 (brotli) const $value = /* @__PURE__ */ _let(7, ($scope) => { _attr_input_value_default($scope, "c", $scope.h); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js index cbf642509a..a91d5fa4ba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 13373 (min) 5165 (brotli) +// total: 13456 (min) 5181 (brotli) // template.marko: 376 (min) 217 (brotli) const $Wrap_content__walks = "b%c", $Wrap_content__template = "", $Message_content__walks = " b", $Message_content__template = " "; _resume_dynamic_tag(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js index fc1fcc83db..3f6e11baa7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2023 (min) 1042 (brotli) +// total: 2289 (min) 1139 (brotli) // template.marko: 141 (min) 106 (brotli) const identity = (fn) => fn; const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", identity((_, el) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js index 66dbbe2b61..7c0b90e19a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 1949 (min) 1013 (brotli) +// total: 2215 (min) 1111 (brotli) // template.marko: 67 (min) 61 (brotli) const identity = (fn) => fn; const $setup__script = _script("a0", ($scope) => _on($scope.a, "click", identity(() => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js index c182f957f4..9f1c734c2c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 4719 (min) 1997 (brotli) +// total: 4985 (min) 2065 (brotli) // template.marko: 99 (min) 61 (brotli) const $input_value__OR__a__script = _script("a0", ($scope) => _attrs_script($scope, "b")); const $input_value__script = _script("a1", ($scope) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js index b176cde3fa..9d0bdfd735 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2657 (min) 1366 (brotli) +// total: 2739 (min) 1371 (brotli) // template.marko: 99 (min) 85 (brotli) const identity = (fn) => fn; const $value = /* @__PURE__ */ _let(2, ($scope) => _text($scope.b, $scope.c)); diff --git a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js index d708e0835f..c642e8d9ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/dom.bundle.js @@ -1,4 +1,4 @@ -// total: 2485 (min) 1295 (brotli) +// total: 2567 (min) 1300 (brotli) // template.marko: 132 (min) 110 (brotli) const $a = /* @__PURE__ */ _let(5, ($scope) => _text($scope.a, $scope.f)); const $b = /* @__PURE__ */ _let(6, ($scope) => _text($scope.b, $scope.g)); diff --git a/packages/runtime-tags/src/dom/schedule.ts b/packages/runtime-tags/src/dom/schedule.ts index e86fd1e270..a7107ce0de 100644 --- a/packages/runtime-tags/src/dom/schedule.ts +++ b/packages/runtime-tags/src/dom/schedule.ts @@ -3,6 +3,23 @@ let runTask: undefined | (() => void); let isScheduled: undefined | 0 | 1; let channel: MessageChannel | undefined; +if (typeof window !== "undefined") { + // On BFCache restore, the MessageChannel macro-task that normally resets + // isScheduled to 0 may have been dropped during the freeze. Reset it here + // and re-trigger scheduling so any effects deferred during the unload window + // are flushed. queue.ts's pageshow listener fires first (registered earlier + // because this module imports from it), so isUnloading is already false by + // the time schedule() runs below. + window.addEventListener( + "pageshow", + () => { + isScheduled = 0; + schedule(); + }, + { capture: true }, + ); +} + export function schedule() { if (!isScheduled) { if (MARKO_DEBUG) {