File tree Expand file tree Collapse file tree 3 files changed +222
-44
lines changed Expand file tree Collapse file tree 3 files changed +222
-44
lines changed Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
22import { addGlobalEventProcessor , SDK_VERSION , BrowserOptions } from '@sentry/browser' ;
33import environmentConfig from 'ember-get-config' ;
4-
4+ import { macroCondition , isDevelopingApp } from '@embroider/macros' ;
55import { next } from '@ember/runloop' ;
6- import { assert , warn , runInDebug } from '@ember/debug' ;
6+ import { assert , warn } from '@ember/debug' ;
77import Ember from 'ember' ;
88import { timestampWithMs } from '@sentry/utils' ;
99
@@ -22,7 +22,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
2222
2323 Sentry . init ( initConfig ) ;
2424
25- runInDebug ( ( ) => {
25+ if ( macroCondition ( isDevelopingApp ( ) ) ) {
2626 if ( config . ignoreEmberOnErrorWarning ) {
2727 return ;
2828 }
@@ -35,7 +35,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
3535 } ,
3636 ) ;
3737 } ) ;
38- } ) ;
38+ }
3939}
4040
4141export const getActiveTransaction = ( ) => {
Original file line number Diff line number Diff line change 3131 "pack" : " npm pack"
3232 },
3333 "dependencies" : {
34+ "@embroider/macros" : " >= 0.25.0" ,
3435 "@sentry/browser" : " 5.24.2" ,
3536 "@sentry/tracing" : " 5.24.2" ,
3637 "@sentry/types" : " 5.24.2" ,
3738 "@sentry/utils" : " 5.24.2" ,
39+ "@types/babel__core" : " ^7.1.9" ,
3840 "ember-auto-import" : " ^1.6.0" ,
3941 "ember-cli" : " ^3.21.2" ,
4042 "ember-cli-babel" : " ^7.20.5" ,
You can’t perform that action at this time.
0 commit comments