Skip to content

Commit eb77489

Browse files
committed
fix: regression with bundle load before inline runtime
1 parent 52426e0 commit eb77489

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@marko/runtime-tags": patch
3+
---
4+
5+
Fix regression with bundle load before inline runtime

packages/runtime-tags/src/html/inlined-runtimes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export const WALKER_RUNTIME_CODE = MARKO_DEBUG
3434
}
3535
},
3636
})
37-
)))`
38-
: `(e=>(self[e]||(self[e]=(o,l=e+o,d=l.length,n={},f=[],s=document,a=s.createTreeWalker(s,129))=>s=self[e][o]={i:l,d:s,l:n,v:f,x(){},w(e,o,i){for(;e=a.nextNode();)s.x(o=(o=e.data)&&!o.indexOf(l)&&(n[i=o.slice(d+1)]=e,o[d]),i,e),o>"#"&&f.push(e)}})))`;
37+
), self[runtimeId]))`
38+
: `(e=>(self[e]||(self[e]=(l,s=e+l,f=s.length,o={},d=[],n=document,t=n.createTreeWalker(n,129))=>n=self[e][l]={i:s,d:n,l:o,v:d,x(){},w(e,l,a){for(;e=t.nextNode();)n.x(l=(l=e.data)&&!l.indexOf(s)&&(o[a=l.slice(f+1)]=e,l[f]),a,e),l>"#"&&d.push(e)}}),self[e]))`;
3939
export const REORDER_RUNTIME_CODE = MARKO_DEBUG
4040
? /* js */ `((runtime) => {
4141
if (runtime.j) return;

0 commit comments

Comments
 (0)