ref: https://github.com/getsentry/sentry-javascript/pull/3960/
ref: #3960