1d423fa75ae478760b81ff58fead015d93253085025de8c163aa9773327c5eedcd93c252c225ea6dadee9d6a9581539077542bd3d050895b7b92118ae4c5f2 855 B

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = mergeSourceMap;
  6. function _remapping() {
  7. const data = require("@ampproject/remapping");
  8. _remapping = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function mergeSourceMap(inputMap, map, sourceFileName) {
  14. const source = sourceFileName.replace(/\\/g, "/");
  15. let found = false;
  16. const result = _remapping()(rootless(map), (s, ctx) => {
  17. if (s === source && !found) {
  18. found = true;
  19. ctx.source = "";
  20. return rootless(inputMap);
  21. }
  22. return null;
  23. });
  24. if (typeof inputMap.sourceRoot === "string") {
  25. result.sourceRoot = inputMap.sourceRoot;
  26. }
  27. return Object.assign({}, result);
  28. }
  29. function rootless(map) {
  30. return Object.assign({}, map, {
  31. sourceRoot: null
  32. });
  33. }
  34. 0 && 0;
  35. //# sourceMappingURL=merge-map.js.map