@zbanx/umi-plugin-sentry
v1.0.13
Published
analytics for sentry
Downloads
5
Keywords
Readme
@zbanx/umi-plugin-sentry
@zbanx/umi-plugin-sentry.
Install
Using npm:
$ npm install --save-dev @zbanx/umi-plugin-sentry
or using yarn:
$ yarn add @zbanx/umi-plugin-sentry --dev
配置
可配置项参考: https://docs.sentry.io/platforms/javascript/guides/react/performance/
export default {
sentry: {
dsn: '### Sentry控制台,创建项目后获取 ###',
},
}
或者在 .umirc.ts 里配置:
export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
routes: [
{ path: '/', component: '@/pages/index' },
],
fastRefresh: {},
sentry: {
dsn: '### Sentry控制台,创建项目后获取 ###',
},
});