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
591ac1ef
Commit
591ac1ef
authored
Jan 23, 2026
by
Tobias Koppers
Committed by
Tobias Koppers
Apr 07, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: unignore module evaluation frames at the start
parent
56364001
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
patch-error-inspect.ts
packages/next/src/server/patch-error-inspect.ts
+20
-0
No files found.
packages/next/src/server/patch-error-inspect.ts
View file @
591ac1ef
...
@@ -164,6 +164,25 @@ function ignoreListAnonymousStackFramesIfSandwiched(
...
@@ -164,6 +164,25 @@ function ignoreListAnonymousStackFramesIfSandwiched(
)
)
}
}
function
unignoreModuleEvaluationFramesIfLeading
(
sourceMappedFrames
:
Array
<
{
stack
:
IgnorableStackFrame
code
:
string
|
null
}
>
):
void
{
// Un-ignore "module evaluation" frames at the top of the stack
// when there are no non-ignored frames before them.
// These frames represent meaningful error locations during module initialization.
for
(
const
frame
of
sourceMappedFrames
)
{
if
(
!
frame
.
stack
.
ignored
)
{
break
}
if
(
frame
.
stack
.
methodName
===
'module evaluation'
)
{
frame
.
stack
.
ignored
=
false
}
}
}
/**
/**
* @param frame
* @param frame
* @param sourceMapCache
* @param sourceMapCache
...
@@ -418,6 +437,7 @@ function parseAndSourceMap(
...
@@ -418,6 +437,7 @@ function parseAndSourceMap(
}
}
ignoreListAnonymousStackFramesIfSandwiched
(
sourceMappedFrames
)
ignoreListAnonymousStackFramesIfSandwiched
(
sourceMappedFrames
)
unignoreModuleEvaluationFramesIfLeading
(
sourceMappedFrames
)
let
sourceMappedStack
=
''
let
sourceMappedStack
=
''
for
(
let
i
=
0
;
i
<
sourceMappedFrames
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
sourceMappedFrames
.
length
;
i
++
)
{
...
...
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