diff --git a/CHANGELOG.md b/CHANGELOG.md index ef7cc7b0..8a64cef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/package.json b/package.json index 40938240..550369c7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/nextjs/templates.ts b/src/nextjs/templates.ts index f748e6ac..fd8d40bc 100644 --- a/src/nextjs/templates.ts +++ b/src/nextjs/templates.ts @@ -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, diff --git a/src/sourcemaps/tools/nextjs.ts b/src/sourcemaps/tools/nextjs.ts index bffb4101..d5bf94dc 100644 --- a/src/sourcemaps/tools/nextjs.ts +++ b/src/sourcemaps/tools/nextjs.ts @@ -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( diff --git a/test/nextjs/templates.test.ts b/test/nextjs/templates.test.ts index e7bdabd2..75f19d86 100644 --- a/test/nextjs/templates.test.ts +++ b/test/nextjs/templates.test.ts @@ -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, @@ -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, @@ -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, @@ -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,