Skip to content

Commit

Permalink
fix: debug dotenv when specifically scoped (#6682)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi authored Jan 31, 2022
1 parent 7418fe5 commit c2f0021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ export function loadEnv(
const path = lookupFile(envDir, [file], true)
if (path) {
const parsed = dotenv.parse(fs.readFileSync(path), {
debug: !!process.env.DEBUG || undefined
debug: process.env.DEBUG?.includes('vite:dotenv') || undefined
})

// let environment variables use each other
Expand Down

0 comments on commit c2f0021

Please sign in to comment.