Sha256: 5e0c0f41206d1f0146515387573b2a982beec0ae9403278b5182905f0f69ed13

Contents?: true

Size: 855 Bytes

Versions: 23

Compression:

Stored size: 855 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = mergeSourceMap;
function _remapping() {
  const data = require("@ampproject/remapping");
  _remapping = function () {
    return data;
  };
  return data;
}
function mergeSourceMap(inputMap, map, sourceFileName) {
  const source = sourceFileName.replace(/\\/g, "/");
  let found = false;
  const result = _remapping()(rootless(map), (s, ctx) => {
    if (s === source && !found) {
      found = true;
      ctx.source = "";
      return rootless(inputMap);
    }
    return null;
  });
  if (typeof inputMap.sourceRoot === "string") {
    result.sourceRoot = inputMap.sourceRoot;
  }
  return Object.assign({}, result);
}
function rootless(map) {
  return Object.assign({}, map, {
    sourceRoot: null
  });
}
0 && 0;

//# sourceMappingURL=merge-map.js.map

Version data entries

23 entries across 16 versions & 3 rubygems

Version Path
wice_grid-7.1.0 node_modules/@babel/core/lib/transformation/file/merge-map.js
immosquare-cleaner-0.1.39 node_modules/@babel/core/lib/transformation/file/merge-map.js
immosquare-cleaner-0.1.38 node_modules/@babel/core/lib/transformation/file/merge-map.js