We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e1d3d commit 3ca20c7Copy full SHA for 3ca20c7
packages/firebase/webpack.config.js
@@ -40,7 +40,21 @@ const baseConfig = {
40
mangle: {
41
props: {
42
ignore_quoted: true,
43
- regex: /^_[^_]|[^_]_$/
+ /**
44
+ * This regex will trigger minification of subproperties that match
45
+ * any of the following use cases:
46
+ *
47
+ * - Prefixed with an underscore (i.e. _)
48
+ * - Suffixed with an underscore (i.e. _)
49
50
+ * Exceptions:
51
+ * - Double underscore prefix/suffix (we have some props that rely on
52
+ * this naming convention)
53
+ * - `_lat` (we have a property in auth that depends on this name)
54
55
+ * This will be kept up to date as this changes
56
+ */
57
+ regex: /^_[^_][^lat]|[^_]_$/
58
}
59
},
60
compress: {
0 commit comments