How to skip building snippets with SPM?

when running swift build, SPM will compile and link all snippets in a project along with the products declared in the Package.swift. but snippets don’t receive the same linker optimizations that normal package products do, even in -c release mode, which means even trivial snippets generate very large binaries, and this is really really slowing down package builds and occupying a lot of disk space.

is there a way to build all normal package products except the snippets?