summaryrefslogtreecommitdiff
path: root/preact/compat/mangle.json
blob: 506a6a41c2075605534ff8a14030aceb0f09df07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"
        ]
      }
    }
  }
}