Closed exotfboy closed 7 years ago
Hm yeah that definitely should not happen! Is it possible that closure-util is somehow compiling everything twice by accident, or running the code through some other tool first, before it invokes the closure compiler?
You mean this maybe caused by closure-util
instead of closure-compiler
itsefl? 😆
It is possible. I haven't looked at what closure-util does. If you can figure out a minimal reproduction with just the compiler itself that would be great.
I can not provide the reproduction at the moment (maybe later), but I tried to print the commands:
java -server -XX:+TieredCompilation -jar D:/ws/app-root/node_modules/closure-util/.deps/compiler/416a3e2f199e3b8ae5c051ece4b8ef57dc365ec0/closure-compiler-v20170910.jar --flagfile=C:\Users\xx\AppData\Local\Temp\compile-flags-117924-1692-12esseb.g5ylvaq0k9.txt
And the flagfile can be found here.
It was an issue in OpenLayers (fixed with https://github.com/openlayers/openlayers/pull/7333) not in closure-util or closure-compiler.
Cool, thanks.
I am building an application, and use the
Advanced
compile mode, and find that the string with quote are renamed.The compiled codes with
debug
throw errors like this:And this is the sources for
if ($candidate$jscomp$1$$.$a$($rendererType$$)) {
:if (candidate['handles'](rendererType)) {
You can find the full codes here
Note the undefined
$a
is indeed['handles']
, but why it is renamed ?BTW, I use closure-util with the following config: