14 lines
274 B
JavaScript
Executable file
14 lines
274 B
JavaScript
Executable file
var istanbulLibSourceMaps = require('istanbul-lib-source-maps')
|
|
|
|
var cache = {}
|
|
|
|
function get (basePath, opts) {
|
|
if (!cache[basePath]) {
|
|
cache[basePath] = istanbulLibSourceMaps.createSourceMapStore(opts)
|
|
}
|
|
return cache[basePath]
|
|
}
|
|
|
|
module.exports = {
|
|
get: get
|
|
}
|