Thanks! It's interesting to see the changes needed to allow advanced optimisations. I might actually get rid of the .min.js file itself, because I imagine it could cause trouble in the long run (PRs from someone that changes one file but not the other), but I'll modify minify.js to search for some special token in the unminified file (like ADVANCED_MINIFY) and to then turn on advanced optimisations. That should allow us to turn it on for some other files 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.
Thanks! It's interesting to see the changes needed to allow advanced optimisations. I might actually get rid of the
.min.js
file itself, because I imagine it could cause trouble in the long run (PRs from someone that changes one file but not the other), but I'll modifyminify.js
to search for some special token in the unminified file (likeADVANCED_MINIFY
) and to then turn on advanced optimisations. That should allow us to turn it on for some other files too.