Skip to content

Commit

Permalink
fix: server entry template tags api
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Nov 21, 2024
1 parent 1bbe41f commit a7accb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-beans-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/vite": patch
---

Fix issue with generated server entry code when using tags api.
4 changes: 2 additions & 2 deletions src/server-entry-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { addAssets } from "${renderAssetsRuntimeId}";
${opts.tagsAPI ? `<const/writeSync=${addAssetsCall}/>` : `$ const writeSync = ${addAssetsCall};`}
<if(writeSync)>
${opts.tagsAPI ? "<if=writeSync>" : "<if(writeSync)>"}
$!{
$global.___viteRenderAssets("head-prepend") +
$global.___viteRenderAssets("head") +
Expand All @@ -40,7 +40,7 @@ ${opts.tagsAPI ? `<const/writeSync=${addAssetsCall}/>` : `$ const writeSync = ${
<await-reorderer/>`
}
<if(writeSync)>
${opts.tagsAPI ? "<if=writeSync>" : "<if(writeSync)>"}
$!{$global.___viteRenderAssets("body")}
</>
<else>
Expand Down

0 comments on commit a7accb7

Please sign in to comment.