sentry-javascript
sentry-javascript copied to clipboard
Do not use wildcard imports
Do you have any plans to avoid wildcard imports? Such as:
import * as Sentry from '@sentry/browser';
Not in this major release. Sentry SDK doesnt contain a standalone functions which could be tree-shaken.
I am not sure where this issue is going, no one stops you from just importing the function you want to use like
import { captureMessage } from '@sentry/browser';
We also provide a (non documented yet) esm build which should help with tree-shaking.