From e456f54ded9a9007689a79a5f9bda5bee2fa2f3a Mon Sep 17 00:00:00 2001 From: invalid w Date: Mon, 9 Oct 2023 11:54:31 +0800 Subject: [PATCH] =?UTF-8?q?chore(internal):=20=E6=B7=BB=E5=8A=A0getEnvConf?= =?UTF-8?q?ig=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/vite-config/src/utils/env.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/vite-config/src/utils/env.ts b/internal/vite-config/src/utils/env.ts index 648d87363..c84ea943a 100644 --- a/internal/vite-config/src/utils/env.ts +++ b/internal/vite-config/src/utils/env.ts @@ -22,7 +22,12 @@ function getConfFiles() { * @param match prefix * @param confFiles ext */ -export async function getEnvConfig(match = 'VITE_GLOB_', confFiles = getConfFiles()) { +export async function getEnvConfig( + match = 'VITE_GLOB_', + confFiles = getConfFiles(), +): Promise<{ + [key: string]: string; +}> { let envConfig = {}; for (const confFile of confFiles) {