UNPKG

@nuxtjs/sentry

Version:
11 lines (9 loc) 304 B
import Vue from 'vue' import { getConfig, init, SentrySdk } from './sentry.client.shared' /** @type {import('@nuxt/types').Plugin} */ export default async function (ctx, inject) { const config = await getConfig(ctx) init({ Vue, ...config }) inject('sentry', SentrySdk) ctx.$sentry = SentrySdk }