module.findSourceMap(path[, error])
path
<string>error
<Error>- 返回: <module.SourceMap>
path
是文件的解析路径,应为其获取相应的源映射。
path
<string>error
<Error>- Returns: <module.SourceMap>
path
is the resolved path for the file for which a corresponding source map
should be fetched.
The error
instance should be passed as the second parameter to findSourceMap
in exceptional flows, such as when an overridden
Error.prepareStackTrace(error, trace)
is invoked. Modules are not added to
the module cache until they are successfully loaded. In these cases, source maps
are associated with the error
instance along with the path
.