From 7a9704ed628fc25b4c0ebf89aa17285ef12656d0 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 26 Apr 2022 15:57:51 -0500 Subject: [PATCH] Import sentry correctly --- static/alert.ts | 2 +- static/event-hub.ts | 2 +- static/hub.ts | 2 +- static/sharing.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/alert.ts b/static/alert.ts index 2c736e272..3b1f19a20 100644 --- a/static/alert.ts +++ b/static/alert.ts @@ -26,7 +26,7 @@ import $ from 'jquery'; import {AlertAskOptions, AlertEnterTextOptions, AlertNotifyOptions} from './alert.interfaces'; import {toggleEventListener} from './utils'; -import Sentry from '@sentry/browser'; +import * as Sentry from '@sentry/browser'; export class Alert { yesHandler: ((answer?: string | string[] | number) => void) | null = null; diff --git a/static/event-hub.ts b/static/event-hub.ts index 69d27e2a3..24f6f0476 100644 --- a/static/event-hub.ts +++ b/static/event-hub.ts @@ -23,7 +23,7 @@ // POSSIBILITY OF SUCH DAMAGE. import GoldenLayout from 'golden-layout'; -import Sentry from '@sentry/browser'; +import * as Sentry from '@sentry/browser'; import {Hub} from './hub'; diff --git a/static/hub.ts b/static/hub.ts index 36d30edd2..0e7984795 100644 --- a/static/hub.ts +++ b/static/hub.ts @@ -51,7 +51,7 @@ import {Cfg as CfgView} from './panes/cfg-view'; import {Conformance as ConformanceView} from './panes/conformance-view'; import {GnatDebugTree as GnatDebugTreeView} from './panes/gnatdebugtree-view'; import {RustMacroExp as RustMacroExpView} from './panes/rustmacroexp-view'; -import Sentry from '@sentry/browser'; +import * as Sentry from '@sentry/browser'; export class Hub { public readonly editorIds: IdentifierSet = new IdentifierSet(); diff --git a/static/sharing.ts b/static/sharing.ts index 7be450096..87d67b728 100644 --- a/static/sharing.ts +++ b/static/sharing.ts @@ -23,7 +23,7 @@ // POSSIBILITY OF SUCH DAMAGE. import $ from 'jquery'; -import Sentry from '@sentry/browser'; +import * as Sentry from '@sentry/browser'; import GoldenLayout from 'golden-layout'; import _ from 'underscore'; import ClipboardJS from 'clipboard';