提交 d4faf277 编写于 作者: fxy060608's avatar fxy060608 提交者: qiang

wip(uvue): 处理 new UTSJSONObject source-map

上级 399d23d0
......@@ -87,6 +87,20 @@ export function rewriteSourceMap(
}),\n`
)
}
} else if (
init.type === 'NewExpression' &&
init.callee.type === 'Identifier' &&
init.callee.name === 'UTSJSONObject'
) {
const start = node.id.loc!.start
s.appendRight(
startOffset + init.end! - 1,
`${
init.arguments.length > 0 ? ', ' : ''
}new UTSSourceMapPosition("${node.id.name}", "${fileName}", ${
startLine + start.line
}, ${start.column + 1})`
)
}
} else if (
node.type === 'TSTypeAliasDeclaration' &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册