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

Function shouldSkipSourcemapUpload

packages/nitro/src/sourceMaps.ts:24–32  ·  view source on GitHub ↗

* Determines if sourcemap uploads should be skipped.

(nitro: Nitro, options?: SentryNitroOptions)

Source from the content-addressed store, hash-verified

22 * Determines if sourcemap uploads should be skipped.
23 */
24function shouldSkipSourcemapUpload(nitro: Nitro, options?: SentryNitroOptions): boolean {
25 return !!(
26 nitro.options.dev ||
27 nitro.options.preset === 'nitro-prerender' ||
28 nitro.options.sourcemap === false ||
29 (nitro.options.sourcemap as unknown) === 'inline' ||
30 options?.sourcemaps?.disable === true
31 );
32}
33
34/**
35 * Handles the actual source map upload after the build completes.

Callers 1

setupSourceMapsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected