How can I use rollbar in an NPM package + source maps?

118 Views Asked by At

I'm trying to use rollbar in an npm package that will be used as a dependency in other projects.

However, the errors I get are not showing up nicely on rollbar. Strangely enough, when I run a sample app that uses the dependency, I do see a proper error on the web console. I think the problem may be with source maps, but I haven't been able to properly configure it. Has anyone used rollbar to track errors on an npm package?

Any help is appreciated.

0

There are 0 best solutions below