Skip to content Skip to sidebar Skip to footer

Google Closure Compiler Doesn't Remove Unreachable Code Marked With @define Annotation

Why this code doesn't result in an empty string after compilation with SIMPLE_OPTIMIZATIONS /** * @define {boolean} */ var TEST = false; (function() { if (TEST) { foo

Solution 1:

I believe it would be removed if using "advanced optimizations"


Post a Comment for "Google Closure Compiler Doesn't Remove Unreachable Code Marked With @define Annotation"