There was actually another thread on this - the easiest way around it is simply to set 'Module Minification' in settings to 'No Minification', and your problems will almost certainly be solved. To be honest when that code was added you couldn't have local modules, so this was less of an issue.
I'd love to have some kind of local minification, but it seems the majority of minifiers use eval, which is banned in Web Apps... The closure compiler (although rate limited) is also pretty good (constant folding, etc).
Someone was looking into finding a local minifier, but I don't believe they got anything working. If there was something that we knew worked I'd be very happy to add it though.
Good point about the unchanged modules - for now, I'll add a simple 'cache' which should at least make it far less likely that you hit this.
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.
Hi,
There was actually another thread on this - the easiest way around it is simply to set 'Module Minification' in settings to 'No Minification', and your problems will almost certainly be solved. To be honest when that code was added you couldn't have local modules, so this was less of an issue.
I'd love to have some kind of local minification, but it seems the majority of minifiers use
eval
, which is banned in Web Apps... The closure compiler (although rate limited) is also pretty good (constant folding, etc).Someone was looking into finding a local minifier, but I don't believe they got anything working. If there was something that we knew worked I'd be very happy to add it though.
Good point about the unchanged modules - for now, I'll add a simple 'cache' which should at least make it far less likely that you hit this.
I just filed a bug for this: https://github.com/espruino/EspruinoWebIDE/issues/105