Codegen Tree Shaking and Bundle Size: A Practical Guide
Quick answer: Tree shaking drops code that is never imported and has no side effects, but a generated API client often bundles every operation, model, and serializer in a structure the bundler cannot split.