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"
};
}
|
||
|---|---|---|
| .. | ||
| ast.js | ||
| compress.js | ||
| mozilla-ast.js | ||
| output.js | ||
| parse.js | ||
| propmangle.js | ||
| scope.js | ||
| sourcemap.js | ||
| transform.js | ||
| utils.js | ||