Webpack: chunk Sentry to reduce entrypoint size

This commit is contained in:
Alex Gleason
2021-09-12 12:33:39 -05:00
parent a22257a916
commit 08f5e1d021
2 changed files with 26 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import * as Sentry from '@sentry/browser';
import { captureException } from 'soapbox/monitoring';
export default class ErrorBoundary extends React.PureComponent {
@@ -15,7 +15,7 @@ export default class ErrorBoundary extends React.PureComponent {
}
componentDidCatch(error, info) {
Sentry.captureException(error);
captureException(error);
this.setState({
hasError: true,