astro-ghostcms/.pnpm-store/v3/files/f2/d1c9c9465f69bc9085bdfdfb555...

25 lines
738 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildMappings = void 0;
function buildMappings(chunks) {
let length = 0;
const mappings = [];
for (const segment of chunks) {
if (typeof segment === 'string') {
length += segment.length;
}
else {
mappings.push({
source: segment[1],
sourceOffsets: [segment[2]],
generatedOffsets: [length],
lengths: [segment[0].length],
data: segment[3],
});
length += segment[0].length;
}
}
return mappings;
}
exports.buildMappings = buildMappings;
//# sourceMappingURL=buildMappings.js.map