Commit d7bcfcde authored by devjiwonchoi's avatar devjiwonchoi

no use of phase

parent d0c8732b
...@@ -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) {
......
...@@ -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)
......
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