function generateSitemap(pages) {
  const urls = [...pages];
  urls.sort((a, b) => a.localeCompare(b, "en", {numeric: true}));
  let sitemap = `<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">`;
  for (const url of urls) {
    sitemap += `<url><loc>${url}</loc></url>`;
  }
  sitemap += `</urlset>
`;
  return sitemap;
}
export {
  generateSitemap
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vc3JjL2NvcmUvc3NyL3NpdGVtYXAudHMiXSwKICAibWFwcGluZ3MiOiAiQUFDTyx5QkFBeUIsT0FBeUI7QUFLdkQsUUFBTSxPQUFPLENBQUMsR0FBRztBQUNqQixPQUFLLEtBQUssQ0FBQyxHQUFHLE1BQU0sRUFBRSxjQUFjLEdBQUcsTUFBTSxDQUFFLFNBQVM7QUFDeEQsTUFBSSxVQUFVO0FBQ2QsYUFBVyxPQUFPLE1BQU07QUFDdEIsZUFBVyxhQUFhO0FBQUE7QUFFMUIsYUFBVztBQUFBO0FBQ1gsU0FBTztBQUFBOyIsCiAgIm5hbWVzIjogW10KfQo=
