File tree Expand file tree Collapse file tree 3 files changed +229
-9
lines changed Expand file tree Collapse file tree 3 files changed +229
-9
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
9
9
declare module '@ember/debug' {
@@ -21,7 +21,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
21
21
22
22
Sentry . init ( initConfig ) ;
23
23
24
- runInDebug ( ( ) => {
24
+ if ( macroCondition ( isDevelopingApp ( ) ) ) {
25
25
if ( config . ignoreEmberOnErrorWarning ) {
26
26
return ;
27
27
}
@@ -34,7 +34,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
34
34
} ,
35
35
) ;
36
36
} ) ;
37
- } ) ;
37
+ }
38
38
}
39
39
40
40
function createEmberEventProcessor ( ) : void {
Original file line number Diff line number Diff line change 30
30
"pack" : " npm pack"
31
31
},
32
32
"dependencies" : {
33
+ "@embroider/macros" : " ^0.22.0" ,
33
34
"@sentry/browser" : " 5.22.3" ,
34
35
"@sentry/types" : " 5.22.3" ,
35
36
"@sentry/utils" : " 5.22.3" ,
37
+ "@types/babel__core" : " ^7.1.9" ,
36
38
"ember-auto-import" : " ^1.6.0" ,
37
39
"ember-cli-babel" : " ^7.20.5" ,
38
40
"ember-cli-htmlbars" : " ^5.1.2" ,
You can’t perform that action at this time.
0 commit comments