You just make sure that in your code you change setInterval(() => { to setInterval(() => {"ram" and when the module is loaded that function will be minified.
But it won't be written to Storage as minified. If that really is your code, I'd consider maybe just not writing the module to storage at all, but just using eval to evaluate the string then and there to create the minified function in RAM
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.
You just make sure that in your code you change
setInterval(() => {
tosetInterval(() => {"ram"
and when the module is loaded that function will be minified.But it won't be written to Storage as minified. If that really is your code, I'd consider maybe just not writing the module to storage at all, but just using
eval
to evaluate the string then and there to create the minified function in RAM