Skip to content

Commit

Permalink
fix: optimized html output bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Feb 12, 2024
1 parent 002c552 commit 88c6e9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/large-shrimps-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"marko-widgets": patch
---

Fix issue with optimizing html output.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const mergeWriteCallsVisitor = {
let nextExpr = curExpr;

while ((nextExpr = curExpr.getNextSibling())) {
curExpr.remove();
const nextContent = getOutContent(nextExpr);
if (!nextContent) break;
curExpr.remove();
quasis.push("");
expressions.push(nextContent);
curExpr = nextExpr;
Expand Down

0 comments on commit 88c6e9b

Please sign in to comment.