Commit Graph

1 Commits

Author SHA1 Message Date
Zirak
a9049497b1 Handle uglify-reserve comments to reserve props
If you want uglify to reserve property names for a specific function, you
may now precede the function with comments containing:
uglify-reserve prop0 prop1 prop2 ... propN
and in that function's scope, these properties will not be mangled.

For example:

// uglify-reserve keepme
function foo() {
    return {
	keepme: "This property will NOT be mangled",
	butme: "This property WILL be mangled"
    };
}
2016-10-13 21:38:21 +00:00