Skip to content

Commit 18828a1

Browse files
committed
legacy method was not exported anyway
1 parent ad05299 commit 18828a1

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

packages/nextjs/src/config/getBuildPluginOptions.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Options as SentryBuildPluginOptions } from '@sentry/bundler-plugin-core';
22
import * as path from 'path';
3-
import type { BuildContext, NextConfigObject, SentryBuildOptions } from './types';
3+
import type { SentryBuildOptions } from './types';
44

55
/**
66
* Get Sentry Build Plugin options for both webpack and turbopack builds.
@@ -161,27 +161,3 @@ export function getBuildPluginOptions({
161161
...sentryBuildOptions.unstable_sentryWebpackPluginOptions,
162162
};
163163
}
164-
165-
/**
166-
* Legacy function for webpack builds. Now calls the unified getBuildPluginOptions function.
167-
* @deprecated Use getBuildPluginOptions instead
168-
*/
169-
export function getWebpackPluginOptions(
170-
buildContext: BuildContext,
171-
sentryBuildOptions: SentryBuildOptions,
172-
releaseName: string | undefined,
173-
): SentryBuildPluginOptions {
174-
const { isServer, config: userNextConfig, dir, nextRuntime } = buildContext;
175-
const buildTool = isServer ? (nextRuntime === 'edge' ? 'webpack-edge' : 'webpack-nodejs') : 'webpack-client';
176-
177-
const projectDir = dir.replace(/\\/g, '/');
178-
const distDir = (userNextConfig as NextConfigObject).distDir?.replace(/\\/g, '/') ?? '.next';
179-
const distDirAbsPath = path.posix.join(projectDir, distDir);
180-
181-
return getBuildPluginOptions({
182-
sentryBuildOptions,
183-
releaseName,
184-
distDirAbsPath,
185-
buildTool,
186-
});
187-
}

0 commit comments

Comments
 (0)