new SourceMap(payload[, { lineLengths }])
版本历史
| 版本 | 变更 |
|---|---|
| v20.5.0 | 添加对 |
-
payload<Object> -
lineLengths<number[]>
创建新的 sourceMap 实例。
\Creates a new sourceMap instance.
payload 是一个对象,其键与 源映射格式 匹配:
\payload is an object with keys matching the Source map format:
-
file<string> -
version<number> -
sources<string[]> -
sourcesContent<string[]> -
names<string[]> -
mappings<string> -
sourceRoot<string>
lineLengths 是生成代码中每行长度的可选数组。
\lineLengths is an optional array of the length of each line in the
generated code.