@zayn919/minisentry-vue2

Mini Sentry Vue 2 SDK:Vue.config.errorHandler 适配
657
Install
npm install @zayn919/minisentry-vue2
Latest Version:2.0.3
Vue:2
License:MIT
Last Updated:Sep 24, 2026
Links: Gitee  ·  npm
Maintainer: zayn0819

@zayn919/minisentry-vue2

npm

Mini Sentry Vue 2 适配:通过 Vue.config.errorHandler 采集组件错误。

安装

npm install @zayn919/minisentry-vue2
# peer: vue ^2.6 || ^2.7

快速开始

import Vue from 'vue';
import MiniSentryVue2 from '@zayn919/minisentry-vue2';

Vue.use(MiniSentryVue2, {
  dsn: 'https://sentry.example.com/api/<public_key>/ingest/',
  release: 'app@2.0.1',
});

Vue CLI 旧项目(Webpack 4)

若构建报 Unexpected token(可选链等),在 vue.config.js 中转译本包及依赖:

module.exports = {
  transpileDependencies: [
    '@zayn919/minisentry-vue2',
    '@zayn919/minisentry-browser',
    '@zayn919/minisentry-core',
  ],
};

≥ @zayn919/minisentry-vue2@2.0.3 的发布产物已降至 ES2017,一般无需再配。

文档

docs/SDK_USAGE.md

License

MIT

Related Packages

@zayn919/minisentry-vue3

Mini Sentry Vue 3 SDK:app.config.errorHandler 适配

630
@yukino.js/sentry

Framework-agnostic sentry sdk with first-class support for react and vue3+

195 1
@dullar/mercury

Advanced and highly reusable Mobile UI Components built on Vue2 & You can define...

8,553 6
flagmint-vuejs-feature-flags

A Vue.js SDK for managing feature flags in Flagmint applications, supporting bot...

4,673 0
@halobear/vue-upload

vue上传组件

460 1

Version History

Version Released Vue License
2.0.3 ^2.6.0 || ^2.7.0 MIT
2.0.2 ^2.6.0 || ^2.7.0 MIT
2.0.1 ^2.6.0 || ^2.7.0 MIT
2.0.0 ^2.6.0 || ^2.7.0 MIT