From 2301331703c118927b8d09811802d9d081a392a0 Mon Sep 17 00:00:00 2001 From: Andrew Nagy Date: Tue, 11 Aug 2020 10:49:34 -0700 Subject: [PATCH] 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 (?) --- examples/with-sentry/next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/with-sentry/next.config.js b/examples/with-sentry/next.config.js index 21f6635917..272fef9c62 100644 --- a/examples/with-sentry/next.config.js +++ b/examples/with-sentry/next.config.js @@ -62,6 +62,7 @@ module.exports = withSourceMaps({ new SentryWebpackPlugin({ include: '.next', ignore: ['node_modules'], + stripPrefix: ['webpack://_N_E/'], urlPrefix: '~/_next', release: COMMIT_SHA, }) -- GitLab