Description
Problem Statement
As identified in getsentry/sentry-docs#9557, we currently don't document that sourcemaps do not have to be shipped to production. It also shows that the nextjs SDK has an option hideSourceMaps
to hide source maps (albeit it not actually being used anywhere 😅 ).
sentry-javascript/packages/nextjs/src/config/types.ts
Lines 376 to 380 in e5d1575
sentry-javascript/packages/nextjs/src/config/webpack.ts
Lines 338 to 345 in e5d1575
Solution Brainstorm
Add a hideSourceMaps
option to all meta frameworks that support bundleSizeOptimizations
and abide by it.