Skip to content

Commit 9582171

Browse files
authored
feat: expose loadConfigFromFile API (#1403)
1 parent 857f5ff commit 9582171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vite/src/node/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export async function resolveConfig(
245245
return resolved
246246
}
247247

248-
function mergeConfig(
248+
export function mergeConfig(
249249
a: Record<string, any>,
250250
b: Record<string, any>,
251251
isRoot = true
@@ -330,7 +330,7 @@ export function sortUserPlugins(
330330
return [prePlugins, postPlugins, normalPlugins]
331331
}
332332

333-
async function loadConfigFromFile(
333+
export async function loadConfigFromFile(
334334
configEnv: ConfigEnv,
335335
configFile?: string,
336336
configRoot: string = process.cwd(),

0 commit comments

Comments
 (0)