Signed-off-by: lizhouze <lizhouze@huawei.com>
This commit is contained in:
lizhouze
2022-01-19 17:20:57 +08:00
parent 87315d8ab2
commit cacfbd17ea
+1 -1
View File
@@ -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);