Skip to content

Commit fa9d69e

Browse files
authored
feat: Check for SENTRY_RELEASE during config phase (#1194)
1 parent 6445589 commit fa9d69e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/raven.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function Raven() {
6969
this._globalProject = null;
7070
this._globalContext = {};
7171
this._globalOptions = {
72+
// SENTRY_RELEASE can be injected by https://github.com/getsentry/sentry-webpack-plugin
73+
release: _window.SENTRY_RELEASE && _window.SENTRY_RELEASE.id,
7274
logger: 'javascript',
7375
ignoreErrors: [],
7476
ignoreUrls: [],

0 commit comments

Comments
 (0)