diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 2feb4fe72b2fd7..b49c496a83fd54 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -245,7 +245,7 @@ export async function resolveConfig( return resolved } -function mergeConfig( +export function mergeConfig( a: Record, b: Record, isRoot = true @@ -330,7 +330,7 @@ export function sortUserPlugins( return [prePlugins, postPlugins, normalPlugins] } -async function loadConfigFromFile( +export async function loadConfigFromFile( configEnv: ConfigEnv, configFile?: string, configRoot: string = process.cwd(),