<!-- Requirements: please go through this checklist before opening a new issue --> - [x] Review the documentation: https://docs.sentry.io/ - [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues - [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases - [ ] Provide a link to the affected event from your Sentry account ## Package + Version - [x] `@sentry/browser` - [ ] `@sentry/node` - [ ] `raven-js` - [ ] `raven-node` _(raven for node)_ - [ ] other: ### Version: ``` 6.13.0 ``` ## Description My service worker registration fails because `document` is not available in service workers: > Uncaught ReferenceError: document is not defined I consider this a breaking API change. This option should either be off by default, or it should not break Web Workers.
Package + Version
@sentry/browser@sentry/noderaven-jsraven-node(raven for node)Version:
Description
My service worker registration fails because
documentis not available in service workers:I consider this a breaking API change. This option should either be off by default, or it should not break Web Workers.