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 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' ;
88
99declare module '@ember/debug' {
@@ -21,7 +21,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
2121
2222 Sentry . init ( initConfig ) ;
2323
24- runInDebug ( ( ) => {
24+ if ( macroCondition ( isDevelopingApp ( ) ) ) {
2525 if ( config . ignoreEmberOnErrorWarning ) {
2626 return ;
2727 }
@@ -34,7 +34,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
3434 } ,
3535 ) ;
3636 } ) ;
37- } ) ;
37+ }
3838}
3939
4040function createEmberEventProcessor ( ) : void {
Original file line number Diff line number Diff line change 3030 "pack" : " npm pack"
3131 },
3232 "dependencies" : {
33+ "@embroider/macros" : " ^0.22.0" ,
3334 "@sentry/browser" : " 5.22.3" ,
3435 "@sentry/types" : " 5.22.3" ,
3536 "@sentry/utils" : " 5.22.3" ,
37+ "@types/babel__core" : " ^7.1.9" ,
3638 "ember-auto-import" : " ^1.6.0" ,
3739 "ember-cli-babel" : " ^7.20.5" ,
3840 "ember-cli-htmlbars" : " ^5.1.2" ,
You can’t perform that action at this time.
0 commit comments