Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
10bf03e2
Unverified
Commit
10bf03e2
authored
Feb 27, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Feb 27, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete `sourcePackage` references (#76550)
parent
f81ba18c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
shared.ts
.../src/client/components/react-dev-overlay/server/shared.ts
+0
-4
stack-frame.ts
.../client/components/react-dev-overlay/utils/stack-frame.ts
+0
-3
No files found.
packages/next/src/client/components/react-dev-overlay/server/shared.ts
View file @
10bf03e2
...
...
@@ -2,8 +2,6 @@ import type { StackFrame } from 'stacktrace-parser'
import
{
codeFrameColumns
}
from
'next/dist/compiled/babel/code-frame'
import
isInternal
from
'../../../../shared/lib/is-internal'
export
type
SourcePackage
=
'react'
|
'next'
export
interface
OriginalStackFramesRequest
{
frames
:
StackFrame
[]
isServer
:
boolean
...
...
@@ -19,8 +17,6 @@ export type OriginalStackFrameResponseResult =
export
interface
OriginalStackFrameResponse
{
originalStackFrame
?:
(
StackFrame
&
{
ignored
:
boolean
})
|
null
originalCodeFrame
?:
string
|
null
/** We use this to group frames in the error overlay */
sourcePackage
?:
SourcePackage
|
null
}
/**
...
...
packages/next/src/client/components/react-dev-overlay/utils/stack-frame.ts
View file @
10bf03e2
...
...
@@ -47,7 +47,6 @@ function getOriginalStackFrame(
sourceStackFrame
:
source
,
originalStackFrame
:
body
.
originalStackFrame
,
originalCodeFrame
:
body
.
originalCodeFrame
||
null
,
sourcePackage
:
body
.
sourcePackage
,
ignored
:
body
.
originalStackFrame
?.
ignored
||
false
,
}
}
...
...
@@ -61,7 +60,6 @@ function getOriginalStackFrame(
sourceStackFrame
:
source
,
originalStackFrame
:
null
,
originalCodeFrame
:
null
,
sourcePackage
:
null
,
ignored
:
true
,
})
}
...
...
@@ -74,7 +72,6 @@ function getOriginalStackFrame(
sourceStackFrame
:
source
,
originalStackFrame
:
null
,
originalCodeFrame
:
null
,
sourcePackage
:
null
,
ignored
:
false
,
})
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment