Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/bundler-plugin-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function sentryUnpluginFactory({
bundleSizeOptimizations.excludePerformanceMonitoring ||
bundleSizeOptimizations.excludeTracing
) {
replacementValues["__SENTRY_TRACE__"] = false;
replacementValues["__SENTRY_TRACING__"] = false;
}
if (bundleSizeOptimizations.excludeReplayCanvas) {
replacementValues["__RRWEB_EXCLUDE_CANVAS__"] = true;
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-plugin-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export type IncludeEntry = {

export interface SentrySDKBuildFlags extends Record<string, boolean | undefined> {
__SENTRY_DEBUG__?: boolean;
__SENTRY_TRACE__?: boolean;
__SENTRY_TRACING__?: boolean;
__RRWEB_EXCLUDE_CANVAS__?: boolean;
__RRWEB_EXCLUDE_IFRAME__?: boolean;
__RRWEB_EXCLUDE_SHADOW_DOM__?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
console.log({
debug: __SENTRY_DEBUG__ ? "a" : "b",
trace: __SENTRY_TRACE__ ? "a" : "b",
trace: __SENTRY_TRACING__ ? "a" : "b",
replayCanvas: __RRWEB_EXCLUDE_CANVAS__ ? "a" : "b",
replayIframe: __RRWEB_EXCLUDE_IFRAME__ ? "a" : "b",
replayShadowDom: __RRWEB_EXCLUDE_SHADOW_DOM__ ? "a" : "b",
Expand Down