@lifabing/vue
v3.0.1
Published
A SDK for monitoring Vue errors
Downloads
9
Readme
@lifabing/vue
⚠️ attention
If you want to import in weixin miniprograme,please replace @lifabing/browser
to @miotjs/wx-mini
🛠️ Install
# using npm
npm i @lifabing/vue @lifabing/browser
# using yarn
yarn add @lifabing/vue @lifabing/browser
read the mito-doc to konw more info
🥳 Usage
Vue2.X
// main.js
import Vue from 'vue'
import { init } from '@lifabing/browser'
import { vuePlugin } from '@lifabing/vue'
// multiple instances
const MitoInstance = init({
// set debug true to convenient debugger in dev,set false in prod
debug:true,
vue: Vue,
dsn: 'https://test.com/yourInterface',
maxBreadcrumbs: 100
},[vuePlugin])
Vue3.x
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { init } from "@lifabing/browser";
import { vuePlugin } from "@lifabing/vue";
const app = createApp(App)
const MitoInstance = init({
// set debug true to convenient debugger in dev,set false in prod
debug:true,
vue: app,
dsn: 'https://test.com/yourInterface',
maxBreadcrumbs: 100
},[vuePlugin])