nativescript-sentry
nativescript-sentry copied to clipboard
SentryModule.forRoot does not allow any dynamic configuration
For angular aot requirements, a direct string would work correctly
e.g => SentryModule.forRoot({ dsn: 'abc123' }),
but any const, function, getter
would break the instanciation
e.g => SentryModule.forRoot({ dsn: AppConfig.sentryDSN }),
Would be cool to have something like TranslateModule
for instance where you can provide a factory
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: translateLoaderFactory,
deps: [Http],
},
}),