Commit d7bcfcde authored by devjiwonchoi's avatar devjiwonchoi

no use of phase

parent d0c8732b
......@@ -131,12 +131,10 @@ export async function transpileConfig({
nextConfigPath,
configFileName,
cwd,
phase,
}: {
nextConfigPath: string
configFileName: string
cwd: string
phase: string
}) {
try {
// Ensure TypeScript is installed to use the API.
......@@ -149,7 +147,7 @@ export async function transpileConfig({
} catch {}
if (pkgJson.type === 'module') {
return handleESM({ cwd, compilerOptions, nextConfigPath, phase })
return handleESM({ cwd, nextConfigPath, compilerOptions })
}
return handleCJS({ cwd, nextConfigPath, compilerOptions })
......@@ -205,7 +203,6 @@ async function handleESM(workerData: {
cwd: string
compilerOptions: CompilerOptions
nextConfigPath: string
phase: string
}) {
try {
if (!hasRegistered) {
......
......@@ -1404,7 +1404,6 @@ export default async function loadConfig(
nextConfigPath: path,
configFileName,
cwd: dir,
phase,
})
} else {
userConfigModule = await import(pathToFileURL(path).href)
......
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