源映射缓存
【Source map cache】
稳定性: 1 - 实验性
如果找到,源映射数据会被添加到 JSON 覆盖对象的顶层键 source-map-cache 中。
【If found, source map data is appended to the top-level key source-map-cache
on the JSON coverage object.】
source-map-cache 是一个对象,其键表示提取源映射的文件,值包括原始的源映射 URL(在键 url 中)、解析后的 Source Map v3 信息(在键 data 中)以及源文件的行长度(在键 lineLengths 中)。
{
"result": [
{
"scriptId": "68",
"url": "file:///absolute/path/to/source.js",
"functions": []
}
],
"source-map-cache": {
"file:///absolute/path/to/source.js": {
"url": "./path-to-map.json",
"data": {
"version": 3,
"sources": [
"file:///absolute/path/to/original.js"
],
"names": [
"Foo",
"console",
"info"
],
"mappings": "MAAMA,IACJC,YAAaC",
"sourceRoot": "./"
},
"lineLengths": [
13,
62,
38,
27
]
}
}
}