-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref(browser): Remove XHR transport from default bundle #5927
Comments
Although we transpile to es5, we don't include polyfills for IE11 (like fetch), so this change would effectively mean that we drop support for IE11. Another decision we can take is to drop the fetch transport and only use the XHR one by default - @lforst brought this up. |
Don't we already require a list of polyfills for IE support and could we not just add |
If you're referencing the page in our docs, that's because prior to 5.7.0 we required polyfills for IE11 support. After 5.7.0 we refactor the SDK to no longer require polyfills, see: #2243. |
Ah right, I think I got this idea from Katies comment here but now realise required polyfills is not a thing yet!
|
Going to backlog this - will eventually happen but will take a while. |
IMHO this is a good candidate for v8 (moving this out of browser and making it opt-in). I'll add the v8 milestone. |
resolves #5927 Removes `makeXHRTransport` and makes the fetch transport the default one. I've also added a warning warning to browser client init that states that the sentry browser sdk requires the fetch API to function.
Problem Statement
fetch
is supported in all browsers supported by the browser SDK.Solution Brainstorm
Can this be removed from the default bundle (along with the
fetch
detection) and only offered as an optional transport?The text was updated successfully, but these errors were encountered: