Skip to content

Commit eb17e0a

Browse files
committed
ref: remove uneeded changes
1 parent fc87791 commit eb17e0a

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

packages/nextjs/src/config/getBuildPluginOptions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ export function getBuildPluginOptions({
241241
const normalizedDistDirAbsPath = normalizePathForGlob(distDirAbsPath);
242242

243243
const loggerPrefix = LOGGER_PREFIXES[buildTool];
244-
// widenClientFileUpload is used for both webpack and turbopack, so it's a top-level option
245244
const widenClientFileUpload = sentryBuildOptions.widenClientFileUpload ?? false;
246245
const deleteSourcemapsAfterUpload = sentryBuildOptions.sourcemaps?.deleteSourcemapsAfterUpload ?? false;
247246

packages/nextjs/test/config/getBuildPluginOptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('getBuildPluginOptions', () => {
129129
const result = getBuildPluginOptions({
130130
sentryBuildOptions: {
131131
...baseSentryOptions,
132-
widenClientFileUpload: true, // top-level option
132+
widenClientFileUpload: true,
133133
},
134134
releaseName: mockReleaseName,
135135
distDirAbsPath: mockDistDirAbsPath,

packages/nextjs/test/config/withSentryConfig.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ describe('withSentryConfig', () => {
378378

379379
const sentryOptions = {
380380
disableLogger: true,
381-
widenClientFileUpload: true,
382381
};
383382

384383
materializeFinalNextConfig(exportedNextConfig, undefined, sentryOptions);
@@ -387,10 +386,6 @@ describe('withSentryConfig', () => {
387386
expect.stringContaining('[@sentry/nextjs] DEPRECATION WARNING: disableLogger is deprecated'),
388387
);
389388
expect(consoleWarnSpy).toHaveBeenCalledWith(expect.stringContaining('Use webpack.treeshake.debugLogs instead'));
390-
// widenClientFileUpload is not deprecated as it's used for both webpack and turbopack
391-
expect(consoleWarnSpy).not.toHaveBeenCalledWith(
392-
expect.stringContaining('[@sentry/nextjs] DEPRECATION WARNING: widenClientFileUpload is deprecated'),
393-
);
394389
});
395390

396391
it('does not warn when using new webpack path', () => {
@@ -402,7 +397,6 @@ describe('withSentryConfig', () => {
402397
debugLogs: true,
403398
},
404399
},
405-
widenClientFileUpload: true, // top-level option, not deprecated
406400
};
407401

408402
materializeFinalNextConfig(exportedNextConfig, undefined, sentryOptions);

0 commit comments

Comments
 (0)