It'd be great to generate the sitemap.xml in a separate process after static build (by looking at the generated file tree). The static builder does as great job at crawling all pages and finding all links within them.
I wouldn't mind to generate the sitemap manually using a CLI command and commit it in the repo.