Unverified Commit 10bf03e2 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Remove obsolete `sourcePackage` references (#76550)

parent f81ba18c
......@@ -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
}
/**
......
......@@ -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,
})
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment