fix: 修复 macOS 12 Monterey (Intel) 上桌面端白屏问题#347
fix: 修复 macOS 12 Monterey (Intel) 上桌面端白屏问题#347zhoujarvy wants to merge 2 commits intoNanmiCoder:mainfrom
Conversation
Vite 8 默认构建目标为 baseline-widely-available (Safari 16.4+), 需要 macOS 13+。macOS 12 Monterey 的 WebView 仅支持 Safari 15.x, 无法加载构建产物导致白屏。显式设置 target 为 es2021/safari15。 关闭 NanmiCoder#284
PR quality triageChanged areas: area:desktop CLI core policy: No CLI-core policy block detected. Missing-test policy: Blocked by policy until a maintainer applies Coverage baseline policy: No coverage-baseline policy block detected. CLI core files:
Coverage policy files:
Expected checks:
Test coverage signals:
Risk notes:
Hard merge gates still come from GitHub Actions, not AI review. Dosu handoff: Dosu can be used as the AI reviewer for risk explanation, missing-test prompts, and maintainer Q&A. If it does not comment automatically from the PR template, ask: @dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact. |
|
Here's my review of PR #347 across the requested dimensions: Changed-Area Risk: Low 🟢 This is a minimal, surgical change — 4 lines added to Missing Tests There are no direct unit tests for the Vite build configuration itself. The repository does have quality-gate tests for build targets and coverage metrics [1] [2], but nothing that validates the actual Vite Docs Impact: None 🟢 No user-facing documentation changes are needed. The inline comment in the config file adequately explains the rationale. If there's a "supported platforms" doc, it might be worth confirming macOS 12 is officially supported. Desktop Startup Risk: Low 🟢 The change targets the Vite build output, which the Tauri WebView loads at startup [3] [4]. Since it widens compatibility (Safari 15 instead of 16.4+), it should not break startup on any currently-working system. The Tauri config, Rust entry point, and React initialization are untouched [5] [6]. CLI Core Impact: None 🟢 This change is isolated to Suggestions:
To reply, just mention @dosu. Docs are dead. Just use Dosu. |
color-mix() CSS 函数需要 Safari 16.2+,macOS 12 Monterey 的 WebView (Safari 15.x) 不支持,导致包含该值的 CSS 规则整体失效, 侧边栏按钮和滚动条样式丢失引发白屏。将所有直接使用的 color-mix() 替换为在 light/dark 主题中预计算的 rgba() 变量。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Vite 8 默认构建目标为 baseline-widely-available (Safari 16.4+), 需要 macOS 13+。macOS 12 Monterey 的 WebView 仅支持 Safari 15.x, 无法加载构建产物导致白屏。显式设置 target 为 es2021/safari15。
关闭 #284
Summary
Feature Quality Contract
Verification
bun run verifyfor code changes, including the coverage gate.Risk
allow-cli-core-change.allow-missing-tests.allow-coverage-baseline-change.@dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact.