未验证 提交 23013317 编写于 作者: A Andrew Nagy 提交者: GitHub

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 (?)
上级 16345f63
......@@ -62,6 +62,7 @@ module.exports = withSourceMaps({
new SentryWebpackPlugin({
include: '.next',
ignore: ['node_modules'],
stripPrefix: ['webpack://_N_E/'],
urlPrefix: '~/_next',
release: COMMIT_SHA,
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册