build: add option for reducing exports