getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
141 stars 36 forks source link

Improve sourcemap upload duration for multi-stage builds #626

Open lforst opened 3 weeks ago

lforst commented 3 weeks ago

I'll limit this issue to Next.js because it is a super-set of everything else.

In high-level frameworks there are often multiple build-passes the framework does. This can cause the Sentry plugin to pick up and upload the same files multiple times, potentially leading to unnecessarily long uploads.

Brainstorming a solution:

Related https://github.com/getsentry/sentry-javascript/issues/14132