@@ -74,6 +74,7 @@ You need to pass an argument to this option to specify the name that your module
74
74
. describe ( "reserve-domprops" , "Make (most?) DOM properties reserved for --mangle-props" )
75
75
. describe ( "mangle-props" , "Mangle property names (0 - disabled, 1 - mangle all properties, 2 - mangle unquoted properies)" )
76
76
. describe ( "mangle-regex" , "Only mangle property names matching the regex" )
77
+ . describe ( "mangle-props-prefix" , "Prefix added to the property name after mangling" )
77
78
. describe ( "name-cache" , "File to hold mangled names mappings" )
78
79
. describe ( "pure-funcs" , "List of functions that can be safely removed if their return value is not used" )
79
80
. describe ( "dump-spidermonkey-ast" , "Dump SpiderMonkey AST to stdout." )
@@ -110,6 +111,7 @@ You need to pass an argument to this option to specify the name that your module
110
111
. string ( "p" )
111
112
. string ( "prefix" )
112
113
. string ( "name-cache" )
114
+ . string ( "mangle-props-prefix" )
113
115
114
116
. array ( "reserved-file" )
115
117
. array ( "pure-funcs" )
@@ -421,6 +423,7 @@ async.eachLimit(files, 1, function (file, cb) {
421
423
only_cache : ! ARGS . mangle_props ,
422
424
regex : regex ,
423
425
ignore_quoted : ARGS . mangle_props == 2 ,
426
+ prefix : ARGS . mangle_props_prefix || "" ,
424
427
debug : typeof ARGS . mangle_props_debug === "undefined" ? false : ARGS . mangle_props_debug
425
428
} ) ;
426
429
writeNameCache ( "props" , cache ) ;
0 commit comments