Surely it's got to be better than the current web request to the closure compiler (which is also without any status indication)
IIRC the JavaScript transpilation result is significantly slower compared to the native Java service provided (GWT is used to transpile from Java).
From this perspective I'd rather try babel-minify or the terser for minification. I used the terser in the rollup plugin.
terser
Rollup (or webpack) give you IMHO quite important tree-shaking. Especially important for the Espruino's microcontroller world.
I think there is no point in trying to reinvent the wheel with regards to the bundling pipeline. What is the point in keeping this Espruino specific?
@opichals started
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.
IIRC the JavaScript transpilation result is significantly slower compared to the native Java service provided (GWT is used to transpile from Java).
From this perspective I'd rather try babel-minify or the terser for minification. I used the
terser
in the rollup plugin.Rollup (or webpack) give you IMHO quite important tree-shaking. Especially important for the Espruino's microcontroller world.
I think there is no point in trying to reinvent the wheel with regards to the bundling pipeline. What is the point in keeping this Espruino specific?