Skip to content

Commit

Permalink
feat: expose loadConfigFromFile API (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Jan 7, 2021
1 parent 857f5ff commit 9582171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export async function resolveConfig(
return resolved
}

function mergeConfig(
export function mergeConfig(
a: Record<string, any>,
b: Record<string, any>,
isRoot = true
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 9582171

Please sign in to comment.