rn-vlq
v0.0.1
Published
Generate, and decode, base64 VLQ mappings for source maps and other uses
Downloads
1
Maintainers
Readme
rn-vlq
此库为Base64 vlq编码,解码库,可以直接解码react native Hermes生成的map,map内有mappings字段,为编码解码内容
Usage
解析rn Hermes 生成的mapping文件
示例如下
npm i rn-vlq
import { convert } from 'rn-vlq'
console.log(convert('AAAA,8BAA8B,MAAJ,KAAiD,MAAQ,MAAA,IAAzD,IAA0B,QAAoB,'))
生成内容如下:
[混淆前行(从1开始), 列] (#混淆之后的index)=> [混淆后的行, 列]
[1,0] (#0) => [0,0] [1,30] (#0) => [0,30] [1,26] (#0) => [0,36] [1,75] (#0) => [0,41] [1,83] (#0) => [0,47] [1,83] (#0) => [0,53] [1,26] (#0) => [0,57] [1,52] (#0) => [0,61] [1,72] (#0) => [0,69]
可以方便定位Hermes 生成map后的crash报错