Skip to content

Commit

Permalink
fix: improve code with optional chain (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Jun 14, 2023
1 parent bb0e143 commit b8caeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export async function compileFile(
if (!clientTemplateResult) {
return
}
clientCode += clientTemplateResult
clientCode += `;${clientTemplateResult}`

const ssrTemplateResult = await doCompileTemplate(
store,
Expand All @@ -160,7 +160,7 @@ export async function compileFile(
)
if (ssrTemplateResult) {
// ssr compile failure is fine
ssrCode += ssrTemplateResult
ssrCode += `;${ssrTemplateResult}`
} else {
ssrCode = `/* SSR compile error: ${store.state.errors[0]} */`
}
Expand Down

0 comments on commit b8caeae

Please sign in to comment.