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 cf1d38ca3cd22ac82ec97aead035a5469d682283..75aab5a61a78e281caa20d2642faaa71431ec935 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` ) } },