lemmy-js-client icon indicating copy to clipboard operation
lemmy-js-client copied to clipboard

v1 bundle size increase - provide a build without annotations and TSOA overhead

Open aeharding opened this issue 9 months ago • 1 comments

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?

aeharding avatar Apr 09 '25 21:04 aeharding