From 87ae50fac0929ab7fbdce4db68869c421281164f Mon Sep 17 00:00:00 2001 From: lizhouze Date: Thu, 21 Jul 2022 18:25:36 +0800 Subject: [PATCH] lizhouze@huawei.com Signed-off-by: lizhouze --- compiler/server/build_pipe_server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/server/build_pipe_server.js b/compiler/server/build_pipe_server.js index 332cf46..16d8fc5 100644 --- a/compiler/server/build_pipe_server.js +++ b/compiler/server/build_pipe_server.js @@ -100,7 +100,7 @@ function handlePluginCompileComponent(jsonData) { const sourceNode = ts.createSourceFile('preview.ets', 'struct preview{build(){' + receivedMsg.data.script + '}}', ts.ScriptTarget.Latest, true, ts.ScriptKind.ETS, compilerOptions); - compileWithCheck = jsonData.data.compileWithCheck; + compileWithCheck = jsonData.data.compileWithCheck || 'true'; if (previewCacheFilePath && fs.existsSync(previewCacheFilePath) && compileWithCheck === 'true') { writeFileSync(previewCacheFilePath, 'struct preview{build(){' + receivedMsg.data.script + '}}');