Fix prop mangling
Even if not “defined”, do mangle if name exists in the cache.
This commit is contained in:
parent
375c88245a
commit
0c80d21e01
|
|
@ -145,7 +145,8 @@ function mangle_properties(ast, options) {
|
|||
}
|
||||
|
||||
function should_mangle(name) {
|
||||
return names_to_mangle.indexOf(name) >= 0;
|
||||
return cache.props.has(name)
|
||||
|| names_to_mangle.indexOf(name) >= 0;
|
||||
}
|
||||
|
||||
function add(name) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user