Update: it is not macros that cause this, it is plugins. If you use a build plugin, it injects the entire build plugin code into your resulting app.
Still no fix, but at least we know more.
Thanks to
@helgeHelge HeΓ for narrowing down the problem.
https://mastodon.social/@Migueldeicaza/115594351085666431