Add stripPrefix of webpack://_N_E/ (#15955)

In with-sentry add stripPrefix of `webpack://_N_E/`. This removes the `webpack://_N_E/` prefix from the stack trace which will help Sentry to understand what is "App Only" vs "Full"

I'll fully tested calling errors in browser and the stack traces are still aligned and linked correctly. This just gets rid of the extra data in the front which seems to be the same for everyone and I believe it comes from webpack 5 (?)
This commit is contained in:
Andrew Nagy 2020-08-11 10:49:34 -07:00 committed by GitHub
parent 16345f631e
commit 2301331703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,7 @@ module.exports = withSourceMaps({
new SentryWebpackPlugin({
include: '.next',
ignore: ['node_modules'],
stripPrefix: ['webpack://_N_E/'],
urlPrefix: '~/_next',
release: COMMIT_SHA,
})