Closed StefanoMagrassi closed 5 years ago
Upgrade Bugsnag to the new version and make the library configuration/initialization lazy (ref)
From this:
import Bugsnag from 'bugsnag-js'; import project from './../../package.json'; // Bugsnag configuration Bugsnag.apiKey = project.bugsnag.apiKey; Bugsnag.endpoint = 'https://notify-bugsnag.contactlab.it/js'; Bugsnag.user = null; Bugsnag.notifyReleaseStages = ['development']; Bugsnag.releaseStage = 'development'; Bugsnag.context = null; Bugsnag.disableAutoBreadcrumbsConsole(); // Export instance reference of Bugsnag export const ContactSnag = Bugsnag;
to this (TBD):
import bugsnag from '@bugsnag/js'; const DEFAULT_CONFIG = { endpoint: 'https://notify-bugsnag.contactlab.it/js', // notifyReleaseStages: ['production'], // releaseStage: 'production', consoleBreadcrumbsEnabled: false }; export const ContactSnag = (apiKey, config) => bugsnag({...DEFAULT_CONFIG, ...config, apiKey});
resolved by #30
Upgrade Bugsnag to the new version and make the library configuration/initialization lazy (ref)
From this:
to this (TBD):