From cacfbd17ea1a15f05eaaf2c97c2ecab7ef59e079 Mon Sep 17 00:00:00 2001 From: lizhouze Date: Wed, 19 Jan 2022 17:20:57 +0800 Subject: [PATCH] lizhouze@huawei.com Signed-off-by: lizhouze --- compiler/src/pre_process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/pre_process.ts b/compiler/src/pre_process.ts index 8e02c3f..53ba547 100644 --- a/compiler/src/pre_process.ts +++ b/compiler/src/pre_process.ts @@ -52,7 +52,7 @@ function preProcess(source: string): string { function parseVisual(resourcePath: string, content: string, log: LogInfo[]): string { if (componentCollection.entryComponent && projectConfig.aceSuperVisualPath) { const sourceFile: ts.SourceFile = ts.createSourceFile(resourcePath, content, - ts.ScriptTarget.Latest, true, ts.ScrpitKint.TS); + ts.ScriptTarget.Latest, true, ts.ScriptKind.TS); if (sourceFile.statments) { sourceFile.statments.forEach(statment => { content = parseStatment(statment, content, log, resourcePath);