UNPKG

@sentry/remix

Version:
28 lines (22 loc) 865 B
Object.defineProperty(exports, '__esModule', { value: true }); var react = require('@sentry/react'); var metadata = require('./utils/metadata.js'); var client = require('./performance/client.js'); var tracing = require('@sentry/tracing'); function init(options) { metadata.buildMetadata(options, ['remix', 'react']); options.environment = options.environment || process.env.NODE_ENV; react.init(options); react.configureScope(scope => { scope.setTag('runtime', 'browser'); }); } exports.Integrations = react.Integrations; exports.remixRouterInstrumentation = client.remixRouterInstrumentation; exports.withSentry = client.withSentry; exports.BrowserTracing = tracing.BrowserTracing; exports.init = init; for (var k in react) { if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = react[k]; } //# sourceMappingURL=index.client.js.map