MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / getDebugIdSnippet

Function getDebugIdSnippet

packages/bundler-plugins/src/core/index.ts:117–121  ·  view source on GitHub ↗
(debugId: string)

Source from the content-addressed store, hash-verified

115}
116
117export function getDebugIdSnippet(debugId: string): CodeInjection {
118 return new CodeInjection(
119 `var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="${debugId}",e._sentryDebugIdIdentifier="sentry-dbid-${debugId}");`,
120 );
121}
122
123export type { Logger } from './logger';
124export type { Options, SentrySDKBuildFlags } from './types';

Callers 4

index.test.tsFile · 0.90
renderChunkFunction · 0.90
setupFunction · 0.90
applyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected