Skip to content

Commit 08fd5a3

Browse files
Lms24AbhiPrasad
andauthored
fix(replay): Temporarily replace __DEBUG_BUILD__ with true (#6341)
fix a runtime bug with Replay which started happening after the monorepo migration because the __DEBUG_BUILD__ variable isn't yet replaced correctly at build time. This temporary fix will be replaced once we use the monorepo's rollup configs for building Replay (WIP) Co-authored-by: Abhijeet Prasad <[email protected]>
1 parent 329cf5a commit 08fd5a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/replay/config/rollup.config.core.ts

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const config = defineConfig({
3131
__SENTRY_REPLAY_VERSION__: JSON.stringify(pkg.version),
3232
// @ts-ignore not gonna deal with types here
3333
__SENTRY_DEBUG__: !IS_PRODUCTION,
34+
// @ts-ignore __DEBUG_BUILD__ variable isn't yet replaced correctly at build time so
35+
// we need to set this as true.
36+
__DEBUG_BUILD__: true,
3437
},
3538
}),
3639
],

0 commit comments

Comments
 (0)