In src/utils.ts, the console methods are cached. However, in a JS worker, window is undefined, and, so, this code fails with "ReferenceError: window is not defined".
It appears these cached methods are only used in two places: src/plugins/logger.ts and src/capture.ts.
In
src/utils.ts, the console methods are cached. However, in a JS worker,windowis undefined, and, so, this code fails with "ReferenceError: window is not defined".It appears these cached methods are only used in two places: src/plugins/logger.ts and src/capture.ts.