This gem shows how to use Zeitwerk in development-only mode. When built, the gem won't depend on Zeitwerk and will still work.
For details, see:
https://blog.pawelpokrywka.com/p/gem-with-zeitwerk-as-development-only-dependency
The gem is available as open source under the terms of the MIT License.