Exact numbers can be read via Storage.getFree and Flash.getFree "Storage" size is configured at firmware build time to 40KB, "Flash" is unallocated free space between end of interpreter code and beginning of Storage that could be added to Storage if configured so. So to guess the maximum possible size add those two sizes (could be e.g. 60-70KB instead of 40) . If it is still not enough then custom build with reduced functionality may give you even more.
Minification and maybe also pretokenization ("Pretokenise code before upload (BETA)" choice in web IDE) will help too.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Exact numbers can be read via Storage.getFree and Flash.getFree "Storage" size is configured at firmware build time to 40KB, "Flash" is unallocated free space between end of interpreter code and beginning of Storage that could be added to Storage if configured so. So to guess the maximum possible size add those two sizes (could be e.g. 60-70KB instead of 40) . If it is still not enough then custom build with reduced functionality may give you even more.
Minification and maybe also pretokenization ("Pretokenise code before upload (BETA)" choice in web IDE) will help too.