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 regex = options.regex;
|
||||||
var ignore_quoted = options.ignore_quoted;
|
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 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'
|
// note debug may be enabled as an empty string, which is falsey. Also treat passing 'true'
|
||||||
|
|
@ -186,6 +187,9 @@ function mangle_properties(ast, options) {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (debug)
|
||||||
|
return "_$" + name + "$_";
|
||||||
|
|
||||||
var mangled = cache.props.get(name);
|
var mangled = cache.props.get(name);
|
||||||
if (!mangled) {
|
if (!mangled) {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user