Most "freighters" would use an externalized framework upon which standardized modules would be attached. However, this approach typically cannot impart the sort of torque, shere forces and other mechanical stresses that ship to ship combat (or atmospheric entry) would impose.
For Combat vessels, everything must be Bespoke and carefully integrated ...