-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(nextjs): Remove webpack://
prefix more broadly from source map sources
field
#10641
Conversation
size-limit report 📦
|
@@ -764,7 +764,7 @@ export function getWebpackPluginOptions( | |||
project: process.env.SENTRY_PROJECT, | |||
authToken: process.env.SENTRY_AUTH_TOKEN, | |||
configFile: hasSentryProperties ? 'sentry.properties' : undefined, | |||
stripPrefix: ['webpack://_N_E/'], | |||
stripPrefix: ['webpack://_N_E/', 'webpack://'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really help?
Because in our example, this would just turn webpack://sentry-docs/app/changelog/%5Fadmin/page.tsx
into sentry-docs/app/changelog/%5Fadmin/page.tsx
not quite sure if thats better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would argue it is better 1) because symbolicator is marking in-app frames as non-in-app because of this prefix 2) it is more aesthetic and less confusing (?).
It seems like newer versions of Next.js do not use the
_N_E
namespace anymore but leave it up to the user. We need to adjust our config for that.We should in the near future add E2E tests that check for source mapping in Next.js.