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
ab24f622
Unverified
Commit
ab24f622
authored
Jul 14, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Jul 14, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sourcemaps] Don't check for vendor chunks when Node.js 18 is used (#81619)
parent
8f060ea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
source-maps.ts
packages/next/src/server/lib/source-maps.ts
+15
-2
No files found.
packages/next/src/server/lib/source-maps.ts
View file @
ab24f622
import
type
{
SourceMap
}
from
'module'
function
noSourceMap
():
SourceMap
|
undefined
{
return
undefined
}
// Edge runtime does not implement `module`
const
f
indSourceMap
=
const
nativeF
indSourceMap
=
process
.
env
.
NEXT_RUNTIME
===
'edge'
?
()
=>
undefined
?
noSourceMap
:
(
require
(
'module'
)
as
typeof
import
(
'module'
)).
findSourceMap
/**
...
...
@@ -95,6 +101,13 @@ export function findApplicableSourceMapPayload(
const
didWarnAboutInvalidSourceMapDEV
=
new
Set
<
string
>
()
const
findSourceMap
:
(
scriptNameOrSourceURL
:
string
)
=>
SourceMap
|
undefined
=
process
.
env
.
NEXT_RUNTIME
===
'nodejs'
&&
process
.
versions
.
node
?.
startsWith
(
'18'
)
?
// Node.js 18 has a horribly slow `findSourceMap` implementation
noSourceMap
:
nativeFindSourceMap
export
function
filterStackFrameDEV
(
sourceURL
:
string
,
functionName
:
string
,
...
...
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