Skip to content

Commit

Permalink
fix: print undefined values as empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Oct 13, 2024
1 parent 0aa8fc8 commit 28af673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fastify-vite/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function compileHtmlTemplate(source) {
// biome-ignore lint/suspicious/noAssignInExpressions: self explanatory
if (jsPath.test((trimmed = comment.text.trim()))) {
params.push(trimmed)
comment.replace(`\${${trimmed}}`)
comment.replace(`\${${trimmed} ?? ''}`)
}
},
})
Expand Down

0 comments on commit 28af673

Please sign in to comment.