Closed rchl closed 1 year ago
The import * as Sentry from '~@sentry/vue' has prevented tree shaking from working.
import * as Sentry from '~@sentry/vue'
Second attempt. This time also handling lazy and exposing all relevant SDK methods on $sentry.
lazy
$sentry
Gzipped savings for the whole client bundle for this module's test fixture:
Also greatly reduces duplicated code in lazy and non-lazy plugins, simplifying maintenance. The code of those two was already slightly out of sync.
The
import * as Sentry from '~@sentry/vue'
has prevented tree shaking from working.Second attempt. This time also handling
lazy
and exposing all relevant SDK methods on$sentry
.Gzipped savings for the whole client bundle for this module's test fixture:
Also greatly reduces duplicated code in lazy and non-lazy plugins, simplifying maintenance. The code of those two was already slightly out of sync.