Skip to content

fix(vite): 修复 Generic Web 的框架边界与默认日志 - #1141

Merged
sonofmagic merged 2 commits into
mainfrom
codex/issue-1106
Aug 31, 2026
Merged

fix(vite): 修复 Generic Web 的框架边界与默认日志#1141
sonofmagic merged 2 commits into
mainfrom
codex/issue-1106

Conversation

@sonofmagic

Copy link
Copy Markdown
Owner

变更说明

  • Vite root 位于 package 内部时,框架检测限制在最近的 package boundary,避免 Generic Web 误继承 monorepo 根框架。
  • 延迟 Vite 运行时 Tailwind 日志,Generic Web 未显式设置 logLevel 时不再输出版本/目标 info。
  • 自动 appType/target 推断日志调整为 debug。
  • 增加框架边界与日志行为回归测试,并补充 weapp-tailwindcss patch changeset。

Refs #1106

验证

  • pnpm --filter weapp-tailwindcss exec vitest run test/bundlers/vite-app-type.unit.test.ts test/bundlers/vite-dispatcher.unit.test.ts test/bundlers/vite-plugin.bundle.unit.test.ts
  • pnpm --filter weapp-tailwindcss build
  • git diff --check

定向测试 223/223 通过。全量包测试仍有 5 个既有快照不匹配,集中在 test/vite.test.tstest/vitest/vite.test.ts,未更新这些快照。

@changeset-bot

changeset-bot Bot commented Aug 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2534a62

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sonofmagic
sonofmagic merged commit 28f4984 into main Aug 31, 2026
108 of 110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant