lib/uglifier.rb in uglifier-3.1.0 vs lib/uglifier.rb in uglifier-3.1.1
- old
+ new
@@ -70,10 +70,10 @@
:hoist_vars => false, # Hoist var declarations
:if_return => true, # Optimizations for if/return and if/continue
:join_vars => true, # Join consecutive var statements
:cascade => true, # Cascade sequences
:collapse_vars => true, # Collapse single-use var and const definitions when possible.
- :reduce_vars => true, # Collapse variables assigned with and used as constant values.
+ :reduce_vars => false, # Collapse variables assigned with and used as constant values.
:negate_iife => true, # Negate immediately invoked function expressions to avoid extra parens
:pure_getters => false, # Assume that object property access does not have any side-effects
:pure_funcs => nil, # List of functions without side-effects. Can safely discard function calls when the result value is not used
:drop_console => false, # Drop calls to console.* functions
:angular => false, # Process @ngInject annotations