source-map-store.js 274 B

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