Skip to content

Commit

Permalink
feat: expose loadEnv in public api (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 committed Jan 2, 2021
1 parent 6ce6d5c commit 9d0a8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -476,7 +476,7 @@ async function loadConfigFromBundledFile(
return config
}

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

0 comments on commit 9d0a8e7

Please sign in to comment.