Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: variables typo #4658

Merged
merged 13 commits into from
Oct 17, 2024
2 changes: 1 addition & 1 deletion internal/vite-config/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function defineConfig(
let projectType = type;

vince292007 marked this conversation as resolved.
Show resolved Hide resolved
// 根据包是否存在 index.html,自动判断类型
if (type === 'auto') {
if (projectType === 'auto') {
const htmlPath = join(process.cwd(), 'index.html');
projectType = existsSync(htmlPath) ? 'application' : 'library';
}
Expand Down
Loading