File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -458,17 +458,6 @@ export function getWebpackPluginOptions(
458
458
return { ...defaultPluginOptions , ...userPluginOptions } ;
459
459
}
460
460
461
- /**
462
- * NOTE: We're faking `require.resolve` here as a workaround for @vercel/nft detecting the binary itself as a hard
463
- * dependency and always including it in the bundle, which is not what we want.
464
- *
465
- * ref: https://github.com/getsentry/sentry-javascript/issues/3865
466
- * ref: https://github.com/vercel/nft/issues/203
467
- */
468
- function ensureCLIBinaryExists ( ) : boolean {
469
- return fs . existsSync ( SentryCLI . getPath ( ) ) ;
470
- }
471
-
472
461
/** Check various conditions to decide if we should run the plugin */
473
462
function shouldEnableWebpackPlugin ( buildContext : BuildContext , userSentryOptions : UserSentryOptions ) : boolean {
474
463
const { isServer, dev : isDev } = buildContext ;
@@ -482,7 +471,7 @@ function shouldEnableWebpackPlugin(buildContext: BuildContext, userSentryOptions
482
471
// architecture-specific version of the `sentry-cli` binary. If `yarn install`, `npm install`, or `npm ci` are run
483
472
// with the `--ignore-scripts` option, this will be blocked and the missing binary will cause an error when users
484
473
// try to build their apps.)
485
- if ( ! ensureCLIBinaryExists ( ) ) {
474
+ if ( ! fs . existsSync ( SentryCLI . getPath ( ) ) ) {
486
475
return false ;
487
476
}
488
477
You can’t perform that action at this time.
0 commit comments