Changing resources/data/production-pages.ts and running bun run build produced HTML with the OLD stylesheet lists. Deleting dist was not enough, and neither was clearing storage/framework/stx/cache.
The build only reflected the change after:
rm -rf dist storage/framework/stx/cache storage/framework/stx/ssg-cache \
storage/framework/stx/bundle-cache storage/framework/stx/bundle-tmpThis is a correctness trap, not just a nuisance: a verification step that reads dist after a build can confirm a change that was never applied, or report a bug that was already fixed. I nearly drew the wrong conclusion from it twice while auditing stylesheet links.
Either the SSG cache should key on the data modules a page imports, or buddy build should invalidate it. Documenting it in the README is the minimum.