vocdoni / ui-components

Vocdoni UI components libs
GNU General Public License v3.0
3 stars 2 forks source link

Reduce resulting bundle filesize #114

Closed elboletaire closed 10 months ago

elboletaire commented 10 months ago

Right now sourcemaps are enabled, and they're being sent to npmjs (making our packages size to be x10 times larger than expected).

I don't think we should be sending sourcemaps tbh, and I guess they were enabled initially, due to how development in this repository started.

elboletaire commented 10 months ago

Test files are also being built and sent as part of the package (and they're most part of the filesize). I tried ignoring it via tsconfig's exclude option, and also tried to define them as external for tsup (which basically fails with an error, see https://github.com/egoist/tsup/issues/986), but none of the options did work. I'll probably open a follow-up issue, since they're actually different issues (although both are related to the bundle filesize).