I am not aware of a minifier that does this for you without breaking everything.
Using arrow functions could scrape another few bytes. I could take a stab at minifying this
later today.
Edit
Offloading fixed strings etc. to a eeprom could 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.
Try minify yourself.. at least some parts.. first place i would start is console.log. You have quite a lot of them and multiple times in a row.
In your setupId function for example:
Try to combine this to a single console.log
I am not aware of a minifier that does this for you without breaking everything.
Using arrow functions could scrape another few bytes. I could take a stab at minifying this
later today.
Edit
Offloading fixed strings etc. to a eeprom could help too.