Under pm2, stack trace filenames have some directories doubled up

I am running a node app under pm2 and it appears that either pm2 or sentry is doubling up some file paths when providing the stack trace.

i.e. …/server/services/util.js becomes …/server/services/services/util.js, and …/server/logs/transports/sentry.js becomes …/server/logs/transports/logs/transports/sentry.js

This means the source contents aren’t shown. I’ve tried using the RewriteFrames integration but even after removing the double-up part with a regex the source contents are not shown.

Following up. It seems like maybe an issue with the inline sourcemaps that babel is generating.