"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const node_path_1 = require("node:path");
class SourceMapReMap {
    static save(s, relativeRoot) {
        const map = s.toJSON();
        map.sources = map.sources.map((src) => (0, node_path_1.relative)(relativeRoot, src).replaceAll("\\", "/"));
        return JSON.stringify(map);
    }
}
exports.default = SourceMapReMap;
//# sourceMappingURL=SourceMapReMap.js.map