Skip to content

Commit 6757352

Browse files
committed
Remove obsolete sourcePackage references
We used these to group frames by package. We no longer do this and can remove the references.
1 parent 71cb06d commit 6757352

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

packages/next/src/client/components/react-dev-overlay/server/shared.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import type { StackFrame } from 'stacktrace-parser'
22
import { codeFrameColumns } from 'next/dist/compiled/babel/code-frame'
33
import isInternal from '../../../../shared/lib/is-internal'
44

5-
export type SourcePackage = 'react' | 'next'
6-
75
export interface OriginalStackFramesRequest {
86
frames: StackFrame[]
97
isServer: boolean
@@ -19,8 +17,6 @@ export type OriginalStackFrameResponseResult =
1917
export interface OriginalStackFrameResponse {
2018
originalStackFrame?: (StackFrame & { ignored: boolean }) | null
2119
originalCodeFrame?: string | null
22-
/** We use this to group frames in the error overlay */
23-
sourcePackage?: SourcePackage | null
2420
}
2521

2622
/**

packages/next/src/client/components/react-dev-overlay/utils/stack-frame.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ function getOriginalStackFrame(
4747
sourceStackFrame: source,
4848
originalStackFrame: body.originalStackFrame,
4949
originalCodeFrame: body.originalCodeFrame || null,
50-
sourcePackage: body.sourcePackage,
5150
ignored: body.originalStackFrame?.ignored || false,
5251
}
5352
}
@@ -61,7 +60,6 @@ function getOriginalStackFrame(
6160
sourceStackFrame: source,
6261
originalStackFrame: null,
6362
originalCodeFrame: null,
64-
sourcePackage: null,
6563
ignored: true,
6664
})
6765
}
@@ -74,7 +72,6 @@ function getOriginalStackFrame(
7472
sourceStackFrame: source,
7573
originalStackFrame: null,
7674
originalCodeFrame: null,
77-
sourcePackage: null,
7875
ignored: false,
7976
})
8077
)

0 commit comments

Comments
 (0)