Country names make up over half the package size
eemeli opened this issue · 0 comments
eemeli commented
When minified with terser -cm
and then gzipped, dist/ibantools.js is currently 4265 bytes. If the country names are left out, this file compresses to 2212 bytes. This means that including the English-language country names with the package almost doubles the total size, compared to what it could be. For the ES module output, the relative size savings are even greater.
I would suggest that it might make sense to change the API, dropping the countryName
field from the output. I'll submit a PR separately with this proposed change.