1.0.0 • Published 2 years ago

@eonx/reporter-bugsnag-vue v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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();