Skip to content

Commit

Permalink
Preserve react devtools global hook (fixes #1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit authored and marvinhagemeister committed Mar 5, 2019
1 parent ac8e1f0 commit 1dbc638
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion debug/mangle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
"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": [
"__REACT_DEVTOOLS_GLOBAL_HOOK__"
]
}
}
},
"props": {
"cname": 6,
"props": {
Expand All @@ -20,4 +30,4 @@
"$_processingException": "__p"
}
}
}
}

0 comments on commit 1dbc638

Please sign in to comment.