Sentry within a NPM library

Hi!

We are a small team that is developing a private NPM library used by several products in a larger organization. The library will then be bundled in different web applications that is connected to different Sentry projects (within the same “organization”).

What might be the best way for our team to keep track of the errors occurred in this library?

Our first approach was to create a scoped instance of Raven client in our library that reported to a “project” owned by our team. The code is however minified and it doesn’t seem to be a way to connect multiple sourcemaps.

We’re currently looking at @sentry/minimal but I can’t get my head around how this will help my team to collect the errors connected to the library.

Thanks!