1 | var istanbulLibSourceMaps = require('istanbul-lib-source-maps')
|
2 |
|
3 | var cache = {}
|
4 |
|
5 | function get (basePath, opts) {
|
6 | if (!cache[basePath]) {
|
7 | cache[basePath] = istanbulLibSourceMaps.createSourceMapStore(opts)
|
8 | }
|
9 | return cache[basePath]
|
10 | }
|
11 |
|
12 | module.exports = {
|
13 | get: get
|
14 | }
|