Skip to content
Discussion options

You must be logged in to vote

Changing the client constructor was on purpose, as it allowed for us to enable tree shaking for the SDKs. Please see our docs for more details: https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/#tree-shaking-default-integrations. If you look at the tree shaking docs, you can see that creation of a browser client is quite simple, and that you can abstract it into a function if you need multiple clients.

We know the docs are out of date, and we will fix them up! This is being tracked in #5298.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AbhiPrasad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants