new SourceMap(payload[, { lineLengths }])
-
payload<Object> -
lineLengths<number[]>
创建新的 sourceMap 实例。
¥Creates a new sourceMap instance.
payload 是一个对象,其键与 源映射 v3 格式 匹配:
¥payload is an object with keys matching the Source map v3 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.