Merge 3d4808c5a2 into 6b2f34769a
This commit is contained in:
commit
1a3b5fd719
|
|
@ -84,6 +84,7 @@ function mangle_properties(ast, options) {
|
|||
|
||||
var regex = options.regex;
|
||||
var ignore_quoted = options.ignore_quoted;
|
||||
var debug = options.debug;
|
||||
|
||||
// note debug is either false (disabled), or a string of the debug suffix to use (enabled).
|
||||
// note debug may be enabled as an empty string, which is falsey. Also treat passing 'true'
|
||||
|
|
@ -185,6 +186,9 @@ function mangle_properties(ast, options) {
|
|||
if (!should_mangle(name)) {
|
||||
return name;
|
||||
}
|
||||
|
||||
if (debug)
|
||||
return "_$" + name + "$_";
|
||||
|
||||
var mangled = cache.props.get(name);
|
||||
if (!mangled) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user