mapbox / shp-write

create and write to shapefiles in pure javascript
BSD 3-Clause "New" or "Revised" License
300 stars 187 forks source link

Address Bundle Size #119

Open charlieforward9 opened 11 months ago

charlieforward9 commented 11 months ago

My goal is to optimize my applications' performance and enhance UX. I was surprised to see that the bundle size of this dependency is so large relative to other dependencies with many more utilities and functions

Screen Shot 2023-12-23 at 1 43 51 PM

I believe the most immediate step to solving this is to deprecate/remove the download functionality as we can provide a simple migration snippet into using something like downloadjs. Which I am happy to contribute to.

Screen Shot 2023-12-23 at 2 00 12 PM Screen Shot 2023-12-23 at 2 01 54 PM

This is nowhere near a top priority for me as this is not a severe limiter for performance, but it would be nice to learn about how to optimize bundle sizes and do it in an OS context with something I am somewhat familiar with.

CC: @sheindel , it was great working with you earlier on this repo, so I'd like to hear what you have to say about this.