From 719c9a8f2d17fad8fa4408cc3c3cd0d4843e6115 Mon Sep 17 00:00:00 2001 From: afe1 <56245609+pzzyf@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:57:13 +0800 Subject: [PATCH] chore: variables typo (#4658) * fix: variables --------- Co-authored-by: afe1 --- internal/vite-config/src/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/vite-config/src/config/index.ts b/internal/vite-config/src/config/index.ts index 56ad3d40..d04a84a8 100644 --- a/internal/vite-config/src/config/index.ts +++ b/internal/vite-config/src/config/index.ts @@ -16,7 +16,7 @@ function defineConfig( let projectType = type; // 根据包是否存在 index.html,自动判断类型 - if (type === 'auto') { + if (projectType === 'auto') { const htmlPath = join(process.cwd(), 'index.html'); projectType = existsSync(htmlPath) ? 'application' : 'library'; }