(options: SentryNuxtServerOptions)
| 82 | * Only exported for testing |
| 83 | */ |
| 84 | export 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 | |
| 98 | function getNuxtDefaultIntegrations(options: NodeOptions): Integration[] { |
| 99 | return [ |
no test coverage detected