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' ;
1
3
import * as path from 'path' ;
2
4
import 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' ;
9
6
10
7
/**
11
8
* Construct a Turbopack config object from a Next.js config object and a Turbopack options object.
@@ -66,6 +63,11 @@ export function safelyAddTurbopackRule(
66
63
67
64
// If the rule already exists, we don't want to mess with it.
68
65
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
+ ) ;
69
71
return existingRules ;
70
72
}
71
73
You can’t perform that action at this time.
0 commit comments