From 439586f1a9560ff134f6ab959b08c16128aa1396 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Wed, 13 Aug 2025 17:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E9=BB=84=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- compiler/src/fast_build/ets_ui/rollup-plugin-ets-typescript.ts | 2 +- compiler/src/process_ui_syntax.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/fast_build/ets_ui/rollup-plugin-ets-typescript.ts b/compiler/src/fast_build/ets_ui/rollup-plugin-ets-typescript.ts index 8f0e19096..4fe0e8fd9 100644 --- a/compiler/src/fast_build/ets_ui/rollup-plugin-ets-typescript.ts +++ b/compiler/src/fast_build/ets_ui/rollup-plugin-ets-typescript.ts @@ -417,7 +417,7 @@ async function transform(code: string, id: string) { const result: ts.TranspileOutput = ts.transpileModule(newContent, { compilerOptions: compilerOptions, fileName: id, - transformers: { before: [processUISyntax(null, false, null, id, metaInfo)] } + transformers: { before: [processUISyntax(null, false, undefined, id, null, metaInfo)] } }); resetCollection(); diff --git a/compiler/src/process_ui_syntax.ts b/compiler/src/process_ui_syntax.ts index 68209e23d..e8c2932a2 100644 --- a/compiler/src/process_ui_syntax.ts +++ b/compiler/src/process_ui_syntax.ts @@ -171,12 +171,12 @@ import { createAndStartEvent, stopEvent } from './performance'; +import parseIntent from './userIntents_parser/parseUserIntents'; export let transformLog: IFileLog = new createAstNodeUtils.FileLog(); export let contextGlobal: ts.TransformationContext; export let resourceFileName: string = ''; export const builderTypeParameter: { params: string[] } = { params: [] }; -import parseIntent from './userIntents_parser/parseUserIntents'; export function processUISyntax(program: ts.Program, ut = false, parentEvent?: CompileEvent, filePath: string = '', share: object = null, metaInfo: Object = {}): Function { -- Gitee