File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/nextjs/src/config/turbopack Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ import { logger } from '@sentry/core' ;
2+ import * as chalk from 'chalk' ;
13import * as path from 'path' ;
24import type { RouteManifest } from '../manifest/types' ;
3- import type {
4- NextConfigObject ,
5- SentryBuildOptions ,
6- TurbopackOptions ,
7- TurbopackRuleConfigItemOrShortcut ,
8- } from '../types' ;
5+ import type { NextConfigObject , TurbopackOptions , TurbopackRuleConfigItemOrShortcut } from '../types' ;
96
107/**
118 * Construct a Turbopack config object from a Next.js config object and a Turbopack options object.
@@ -66,6 +63,11 @@ export function safelyAddTurbopackRule(
6663
6764 // If the rule already exists, we don't want to mess with it.
6865 if ( existingRules [ matcher ] ) {
66+ logger . info (
67+ `${ chalk . cyan (
68+ 'info' ,
69+ ) } - Turbopack rule already exists for ${ matcher } . Please remove it from your Next.js config in order for Sentry to work properly.`,
70+ ) ;
6971 return existingRules ;
7072 }
7173
You can’t perform that action at this time.
0 commit comments