Skip to content

Commit ee12f30

Browse files
authored
chore: replace 'some' with 'includes' in resolveEnvPrefix (#15220)
1 parent 14be75f commit ee12f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/vite/src/node/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function resolveEnvPrefix({
7676
envPrefix = 'VITE_',
7777
}: UserConfig): string[] {
7878
envPrefix = arraify(envPrefix)
79-
if (envPrefix.some((prefix) => prefix === '')) {
79+
if (envPrefix.includes('')) {
8080
throw new Error(
8181
`envPrefix option contains value '', which could lead unexpected exposure of sensitive information.`,
8282
)

0 commit comments

Comments
 (0)