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"
};
}
|
||
|---|---|---|
| .. | ||
| compress | ||
| input | ||
| mocha | ||
| mocha.js | ||
| mozilla-ast.js | ||
| run-tests.js | ||
| sourcemaps.js | ||