@eonx/reporter-bugsnag-vue
v1.0.0
Published
This engine should use with `@eonx/reporter` library.
Downloads
15
Readme
Bugsnag Reporter Engine for Vue
This engine should use with @eonx/reporter
library.
Getting started
import { createApp } from 'vue';
import { reporter } from '@eonx/reporter';
reporter.configure({
engines: {
bugsnag: () => import('@eonx/reporter-bugsnag-vue'),
},
});
async function bootstrap() {
const app = createApp(App);
await reporter.initWithKey('api_key');
const plugin = reporter.getAppPlugin();
if (plugin) {
app.use(plugin);
}
app.mount('#app');
}
bootstrap();