For Nape I compile the swcs like:
haxe --macro "include('nape')" --macro "include('zpp_nape')" ...
with no -main
flag, this builds a .swc that includes only the classes from the nape
and zpp_nape
packages.
This will still include the haxe std library, but no-one has complained so far.