MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / clientSourceMapErrorFilter

Function clientSourceMapErrorFilter

packages/nuxt/src/server/sdk.ts:84–96  ·  view source on GitHub ↗
(options: SentryNuxtServerOptions)

Source from the content-addressed store, hash-verified

82 * Only exported for testing
83 */
84export function clientSourceMapErrorFilter(options: SentryNuxtServerOptions): EventProcessor {
85 return Object.assign(
86 (event => {
87 const errorMsg = event.exception?.values?.[0]?.value;
88 if (errorMsg?.match(/^ENOENT: no such file or directory, open '.*\/_nuxt\/.*\.js\.map'/)) {
89 options.debug && DEBUG_BUILD && debug.log('NuxtClientSourceMapErrorFilter filtered error: ', errorMsg);
90 return null;
91 }
92 return event;
93 }) satisfies EventProcessor,
94 { id: 'NuxtClientSourceMapErrorFilter' },
95 );
96}
97
98function getNuxtDefaultIntegrations(options: NodeOptions): Integration[] {
99 return [

Callers 2

sdk.test.tsFile · 0.90
initFunction · 0.85

Calls 3

assignMethod · 0.80
matchMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected