File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,16 @@ export function makeTerserPlugin() {
92
92
properties : {
93
93
// allow mangling of private field names...
94
94
regex : / ^ _ [ ^ _ ] / ,
95
- // ...except for `_experiments`, which we want to remain usable from the outside
96
- reserved : [ '_experiments' ] ,
95
+ reserved : [
96
+ // ...except for `_experiments`, which we want to remain usable from the outside
97
+ '_experiments' ,
98
+ // ...except for some localforage internals, which if we replaced them would break the localforage package
99
+ // with the error "Error: Custom driver not compliant": https://github.com/getsentry/sentry-javascript/issues/5527.
100
+ // Reference for which fields are affected: https://localforage.github.io/localForage/ (ctrl-f for "_")
101
+ '_driver' ,
102
+ '_initStorage' ,
103
+ '_support' ,
104
+ ] ,
97
105
} ,
98
106
} ,
99
107
output : {
You can’t perform that action at this time.
0 commit comments