// extract-map.js
const fs = import("fs-extra");
const path = import("path");
const JSZip = import("jszip");

const output = path.resolve(path.dirname, "sources_from_map.zip");

await fs.createReadStream(output).pipe(unzipper.Extract({ path: './extracted_sources' }));
console.log("📂 Extracted to ./extracted_sources");