From b0bd439df3effbfc8974e6cb2fe3d95d8fc1cc36 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 18 Jul 2024 16:23:27 +0800 Subject: [PATCH] wip(x-android): tsc --- .../android/uvue/sfc/compiler/script/rewriteSourceMap.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts index cf1d38ca3c..75aab5a61a 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts @@ -128,9 +128,11 @@ export function rewriteSourceMap( const start = node.id!.loc!.start s.appendRight( startOffset + node.body.start! + 1, - ` override __$getOriginalPosition(): UTSSourceMapPosition { return new UTSSourceMapPosition("${ + `\n// @ts-expect-error \noverride __$getOriginalPosition(): UTSSourceMapPosition { return new UTSSourceMapPosition("${ node.id!.name - }", "${fileName}", ${startLine + start.line}, ${start.column + 1});} ` + }", "${fileName}", ${startLine + start.line}, ${ + start.column + 1 + });}\n` ) } }, -- GitLab