I have a complex dojo app that works correctly uncompiled, but after compiling with Google\'s Closure Compiler, I get subtle differences in some behaviours.
As it is
VERBOSE
warning level. This turns on all of the checks.debug
flag. It makes renamed symbols ridiculously long, but they are named in such a way you can find the original. If code works with the debug
flag but not without it, it is almost certainly a renaming issue.formatting=PRETTY_PRINT
. Debugging compacted code is painful without it.--use_types_for_optimization false
. Incorrect type annotations can cause the compiler to make invalid assumptions.UPDATE: As of the 20150315 compiler release, the type based optimizations are enabled by default.