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
d7bcfcde
Commit
d7bcfcde
authored
Aug 29, 2025
by
devjiwonchoi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no use of phase
parent
d0c8732b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
transpile-config.ts
packages/next/src/build/next-config-ts/transpile-config.ts
+1
-4
config.ts
packages/next/src/server/config.ts
+0
-1
No files found.
packages/next/src/build/next-config-ts/transpile-config.ts
View file @
d7bcfcde
...
@@ -131,12 +131,10 @@ export async function transpileConfig({
...
@@ -131,12 +131,10 @@ export async function transpileConfig({
nextConfigPath
,
nextConfigPath
,
configFileName
,
configFileName
,
cwd
,
cwd
,
phase
,
}:
{
}:
{
nextConfigPath
:
string
nextConfigPath
:
string
configFileName
:
string
configFileName
:
string
cwd
:
string
cwd
:
string
phase
:
string
})
{
})
{
try
{
try
{
// Ensure TypeScript is installed to use the API.
// Ensure TypeScript is installed to use the API.
...
@@ -149,7 +147,7 @@ export async function transpileConfig({
...
@@ -149,7 +147,7 @@ export async function transpileConfig({
}
catch
{}
}
catch
{}
if
(
pkgJson
.
type
===
'module'
)
{
if
(
pkgJson
.
type
===
'module'
)
{
return
handleESM
({
cwd
,
compilerOptions
,
nextConfigPath
,
phase
})
return
handleESM
({
cwd
,
nextConfigPath
,
compilerOptions
})
}
}
return
handleCJS
({
cwd
,
nextConfigPath
,
compilerOptions
})
return
handleCJS
({
cwd
,
nextConfigPath
,
compilerOptions
})
...
@@ -205,7 +203,6 @@ async function handleESM(workerData: {
...
@@ -205,7 +203,6 @@ async function handleESM(workerData: {
cwd
:
string
cwd
:
string
compilerOptions
:
CompilerOptions
compilerOptions
:
CompilerOptions
nextConfigPath
:
string
nextConfigPath
:
string
phase
:
string
})
{
})
{
try
{
try
{
if
(
!
hasRegistered
)
{
if
(
!
hasRegistered
)
{
...
...
packages/next/src/server/config.ts
View file @
d7bcfcde
...
@@ -1404,7 +1404,6 @@ export default async function loadConfig(
...
@@ -1404,7 +1404,6 @@ export default async function loadConfig(
nextConfigPath
:
path
,
nextConfigPath
:
path
,
configFileName
,
configFileName
,
cwd
:
dir
,
cwd
:
dir
,
phase
,
})
})
}
else
{
}
else
{
userConfigModule
=
await
import
(
pathToFileURL
(
path
).
href
)
userConfigModule
=
await
import
(
pathToFileURL
(
path
).
href
)
...
...
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