Fix prop mangling
Even if not “defined”, do mangle if name exists in the cache.
This commit is contained in:
@@ -145,7 +145,8 @@ function mangle_properties(ast, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function should_mangle(name) {
|
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) {
|
function add(name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user