Skip to content

Commit 9d0a8e7

Browse files
authored
feat: expose loadEnv in public api (#1300)
1 parent 6ce6d5c commit 9d0a8e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ async function loadConfigFromBundledFile(
476476
return config
477477
}
478478

479-
function loadEnv(mode: string, root: string, prefix = 'VITE_') {
479+
export function loadEnv(mode: string, root: string, prefix = 'VITE_') {
480480
if (mode === 'local') {
481481
throw new Error(
482482
`"local" cannot be used as a mode name because it conflicts with ` +

0 commit comments

Comments
 (0)