File tree Expand file tree Collapse file tree 3 files changed +220
-43
lines changed Expand file tree Collapse file tree 3 files changed +220
-43
lines changed Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
2
import { addGlobalEventProcessor , SDK_VERSION , BrowserOptions } from '@sentry/browser' ;
3
3
import environmentConfig from 'ember-get-config' ;
4
-
4
+ import { macroCondition , isDevelopingApp } from '@embroider/macros' ;
5
5
import { next } from '@ember/runloop' ;
6
- import { assert , warn , runInDebug } from '@ember/debug' ;
6
+ import { assert , warn } from '@ember/debug' ;
7
7
import Ember from 'ember' ;
8
8
import { timestampWithMs } from '@sentry/utils' ;
9
9
@@ -22,7 +22,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
22
22
23
23
Sentry . init ( initConfig ) ;
24
24
25
- runInDebug ( ( ) => {
25
+ if ( macroCondition ( isDevelopingApp ( ) ) ) {
26
26
if ( config . ignoreEmberOnErrorWarning ) {
27
27
return ;
28
28
}
@@ -35,7 +35,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
35
35
} ,
36
36
) ;
37
37
} ) ;
38
- } ) ;
38
+ }
39
39
}
40
40
41
41
export const getActiveTransaction = ( ) => {
Original file line number Diff line number Diff line change 31
31
"pack" : " npm pack"
32
32
},
33
33
"dependencies" : {
34
+ "@embroider/macros" : " >= 0.25.0" ,
34
35
"@sentry/browser" : " 5.24.2" ,
35
36
"@sentry/tracing" : " 5.24.2" ,
36
37
"@sentry/types" : " 5.24.2" ,
You can’t perform that action at this time.
0 commit comments