errorPosition
根据 js 错误堆栈字符串和 sourceMap 文件定位错误位置
Usage
例如:代码中抛出这样的错误:
try throw 'Hello'; catch e console;
输入:错误堆栈 e.stack
字符串,sourcemap文件路径E:\\code\\dist
输出:错误在源代码中所在位置、行数、列数、报错行代码等信息
安装:npm install --save error-position
const errorPosition = ; let result =