标签: typescript typescript-compiler-api
referencing this stack overflow issue
referencing this github issue
是否可以指示打字稿在源地图上发出names?
names
一种用法是调试exports值, 但我正在寻找更通用的解决方案。
exports
源代码:
let a = 0;
发射代码:
ctx.a = 0;
调试器:
显示ctx.a而不是a的值,因为js上下文中不再存在a。
ctx.a
a