Преглед изворни кода

chore: variables typo (#4658)


* fix: variables

---------

Co-authored-by: afe1 <yunfei.zhu@nwowtec.com>
afe1 пре 5 месеци
родитељ
комит
719c9a8f2d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      internal/vite-config/src/config/index.ts

+ 1 - 1
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';
   }