Yeah, that’s a really good point to bring up. One thing we looked into was setting up multiple entry points. This results in one output file for each entry point. There’s PR related to this here if you want to check it out.
I’m not sure this is the solution I want to go for though. For me the best solution would be to setup UI Kit as mono repo, like how reach/ui works. Basically would setup every component as a package, and then components can consume each other (IE, text input consuming spacing component).
This is something I would like to look into in future, as you are 100% right about the bundle size.