To support Worklets we have to consider globalThis.
Basically:
|
})(typeof global == "" + void 0 ? typeof self == "" + void 0 ? this : self : global); |
has to be changed to:
})(typeof global == "" + void 0 ? typeof self == "" + void 0 ? typeof this == "" + void 0 ? globalThis : this : self : global);