lemmy-js-client
lemmy-js-client copied to clipboard
v1 bundle size increase - provide a build without annotations and TSOA overhead
I noticed the bundle size has increased quite a lot since 0.19.
I see that this is due to decorators and the tsoa runtime. Currently in the prod build, I see they're mostly just used for mutating LemmyHttp with the setHeader function.
So I think it might be worth providing an alternative bundle with significantly less overhead. I did some preliminary research, and it is possible to strip the annotations and remove the tsoa runtime for a stripped down build. Would you accept a PR for this?