In this PR I optimize this file to be around 130kb (51% the original size):
Use mappings to avoid using the same strings over and over
Keep only the first bound of the range when mapping is for 1 charcode
For valid charcodes, drop last 2 columns (not used)
I guess we could go a lot further. One way of drastically reducing the package size would be to build the mapping table during the postInstall phase and not package them.
Package size is currently 317kb.
The generated
mappingTable.json
alone is 253kb.In this PR I optimize this file to be around 130kb (51% the original size):
valid
charcodes, drop last 2 columns (not used)I guess we could go a lot further. One way of drastically reducing the package size would be to build the mapping table during the
postInstall
phase and not package them.