meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
6 additions and
0 deletions
-
src/internals/index.js
|
|
@ -8,6 +8,12 @@ function sendEvent(type: string, data: any, options: Object = { kill: true }) { |
|
|
|
process.send({ type, data, options }) |
|
|
|
} |
|
|
|
|
|
|
|
if (__PROD__ && __SENTRY_URL__) { |
|
|
|
const Raven = require('raven') // eslint-disable-line global-require
|
|
|
|
const ravenConfig = { captureUnhandledRejections: true } |
|
|
|
Raven.config(__SENTRY_URL__, ravenConfig).install() |
|
|
|
} |
|
|
|
|
|
|
|
// $FlowFixMe
|
|
|
|
const func = require(`./${process.env.FORK_TYPE}`) // eslint-disable-line import/no-dynamic-require
|
|
|
|
|
|
|
|