Skip to content

Commit

Permalink
Merge pull request #798 from getsentry/lms/fix-nextjs-hideSourceMaps-…
Browse files Browse the repository at this point in the history
…removal

fix(nextjs): Remove outdated `hideSourceMaps` option
  • Loading branch information
Lms24 authored Feb 20, 2025
2 parents 3d19011 + a737c74 commit eca89d6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

- ref!: Bump main Node.js version to the earliest LTS v18 ([#793](https://github.com/getsentry/sentry-wizard/pull/793))

## 3.42.1

- fix(nextjs): Remove outdated `hideSourceMaps` option (#798)

## 3.42.0

- feat: Update `nextjs`, `remix`, `sveltekit` and `nuxt` wizards to install v9 ([#794](https://github.com/getsentry/sentry-wizard/pull/794))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/wizard",
"version": "3.42.0",
"version": "3.42.1",
"homepage": "https://github.com/getsentry/sentry-wizard",
"repository": "https://github.com/getsentry/sentry-wizard",
"description": "Sentry wizard helping you to configure your project",
Expand Down
3 changes: 0 additions & 3 deletions src/nextjs/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ export function getWithSentryConfigOptionsTemplate({
// side errors will fail.
${tunnelRoute ? '' : '// '}tunnelRoute: "/monitoring",
// Hides source maps from generated client bundles
hideSourceMaps: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
Expand Down
3 changes: 0 additions & 3 deletions src/sourcemaps/tools/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ const getCodeSnippet = (options: SourceMapUploadToolConfigurationOptions) =>
${chalk.greenBright(`const sentryOptions = {
// Upload additional client files (increases upload size)
widenClientFileUpload: true,
// Hides source maps from generated client bundles
hideSourceMaps: true,
};`)}
${chalk.greenBright(`module.exports = withSentryConfig(
Expand Down
12 changes: 0 additions & 12 deletions test/nextjs/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ describe('Next.js code templates', () => {
// side errors will fail.
tunnelRoute: "/monitoring",
// Hides source maps from generated client bundles
hideSourceMaps: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
Expand Down Expand Up @@ -322,9 +319,6 @@ describe('Next.js code templates', () => {
// side errors will fail.
tunnelRoute: "/monitoring",
// Hides source maps from generated client bundles
hideSourceMaps: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
Expand Down Expand Up @@ -370,9 +364,6 @@ describe('Next.js code templates', () => {
// side errors will fail.
// tunnelRoute: "/monitoring",
// Hides source maps from generated client bundles
hideSourceMaps: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
Expand Down Expand Up @@ -423,9 +414,6 @@ describe('Next.js code templates', () => {
// side errors will fail.
tunnelRoute: "/monitoring",
// Hides source maps from generated client bundles
hideSourceMaps: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
Expand Down

0 comments on commit eca89d6

Please sign in to comment.