sentry-config
Usage
yarn add @leapwallet/sentry-config
Browser Based Environment
import * as Sentry from '@sentry/browser';
import { createSentryConfig } from '@leapwallet/sentry-config/dist/browser';
Sentry.init(
createSentryConfig({
release: '1.0.0',
environment: 'production',
dsn: 'https://sentry.io/...',
})
);
Extension Based Environment
import * as Sentry from '@sentry/browser';
import { createSentryConfig } from '@leapwallet/sentry-config/dist/extension';
Sentry.init(
createSentryConfig({
release: '1.0.0',
environment: 'production',
dsn: 'https://sentry.io/...',
})
);
Mobile Based Environment
import * as Sentry from '@sentry/react-native';
import { createSentryConfigMobile } from '@leapwallet/sentry-config/dist/mobile';
Sentry.init(
createSentryConfigMobile({
// release: '1.0.0', (by default taken as version and build no.)
environment: 'production',
dsn: 'https://sentry.io/...',
})
);
export default Sentry.wrap(App);
Development
Clone this repository and run yarn
to install dependencies.
To actively develop this package, run
yarn build:watch
It uses microbundle to build the package and watch for changes.