From b8caeaef0368609fa3c41e992304d21d526de08c Mon Sep 17 00:00:00 2001 From: edison Date: Wed, 14 Jun 2023 17:54:04 +0800 Subject: [PATCH] fix: improve code with optional chain (#72) --- src/transform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transform.ts b/src/transform.ts index 0062321f..6f68a308 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -148,7 +148,7 @@ export async function compileFile( if (!clientTemplateResult) { return } - clientCode += clientTemplateResult + clientCode += `;${clientTemplateResult}` const ssrTemplateResult = await doCompileTemplate( store, @@ -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]} */` }