Can you share the code you're uploading? And exactly what minification settings you're using?
The Web IDE definitely doesn't insert $jscomp.etc - that is all added by the closure compiler, most likely when you're using ES6 code as it's trying to transpile it down to ES5. You can try it by going to https://closure-compiler.appspot.com and trying to minify a = () => { console.log(this); }.
So if you were to disable all minification, I imagine it would work just fine. Did you try that at all?
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 for the update.
Can you share the code you're uploading? And exactly what minification settings you're using?
The Web IDE definitely doesn't insert
$jscomp.etc
- that is all added by the closure compiler, most likely when you're using ES6 code as it's trying to transpile it down to ES5. You can try it by going to https://closure-compiler.appspot.com and trying to minifya = () => { console.log(this); }
.So if you were to disable all minification, I imagine it would work just fine. Did you try that at all?