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);