Skip to content

Commit bf8a0dc

Browse files
chargomeclaude
andcommitted
feat(remix): Warn when the source map upload is partial
Modules without a debug ID or a source map will not symbolicate, so say how many there were. A warning, not a failure: `sourceMaps: false` yields no maps on purpose. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 103ff3f commit bf8a0dc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/remix/scripts/sentry-remix-v3-upload-sourcemaps.mjs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ try {
5252
'no debug IDs were emitted. Run this command with `node --import @sentry/remix/v3/node` so the asset server is instrumented.',
5353
);
5454
}
55+
if (debugIds < emitted.length || maps < emitted.length) {
56+
// A warning, not a failure: `sourceMaps: false` yields no maps on purpose.
57+
console.warn(
58+
`[sentry] ${emitted.length - debugIds} modules without a debug ID and ${emitted.length - maps} without a source map; those will not symbolicate.`,
59+
);
60+
}
5561

5662
if (values['dry-run']) {
5763
console.log('[sentry] --dry-run, skipping upload');

0 commit comments

Comments
 (0)