diff options
Diffstat (limited to 'preact/devtools/mangle.json')
-rw-r--r-- | preact/devtools/mangle.json | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/preact/devtools/mangle.json b/preact/devtools/mangle.json new file mode 100644 index 0000000..506a6a4 --- /dev/null +++ b/preact/devtools/mangle.json @@ -0,0 +1,21 @@ +{ + "help": { + "what is this file?": "It controls protected/private property mangling so that minified builds have consistent property names.", + "why are there duplicate minified properties?": "Most properties are only used on one type of objects, so they can have the same name since they will never collide. Doing this reduces size." + }, + "minify": { + "mangle": { + "properties": { + "regex": "^_[^_]", + "reserved": [ + "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", + "__REACT_DEVTOOLS_GLOBAL_HOOK__", + "__PREACT_DEVTOOLS__", + "_renderers", + "__source", + "__self" + ] + } + } + } +}
\ No newline at end of file |