On the other hand, I tried also with the online service (https://closure-compiler.appspot.com/home), and actually it doesn’t complain. So it seems that the problem was solved upstream; but I dont know how (if it's even possible) to use a newer version of CC with the plugin.
I’m trying to reduce the size of the javascript I’m deploying, for a project I’m developing in kotlin/js.
Since I’m using Gradle, I imported this plugin. If I apply it to the (DCE’d) kotlin.js, I get a number of errors like this:
[…]\build\kotlin-js-min\main\kotlin.js:3387 - Parse error. identifier is a reserved word
This is because of methods like this:
On the other hand, I tried also with the online service (https://closure-compiler.appspot.com/home), and actually it doesn’t complain. So it seems that the problem was solved upstream; but I dont know how (if it's even possible) to use a newer version of CC with the plugin.
Thanks,
--Germano
PS: reported also in kotlin forum, here