feat(weapp): upgrade toolchain and add web preview - #11
Conversation
Upgrade wevu, weapp-vite, and weapp-tailwindcss without pinning patch versions, restyle Weapp Agent UI status variants with class modifiers, and add a private Web compatibility preview for compiled mini-program artifacts.
🦋 Changeset detectedLatest commit: 6505694 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 |
|
Important Review skippedToo many files! This PR contains 167 files, which is 67 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (167)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Drop the consumed wevu-seven-components intent after the 2.0.0 release and record the remaining Wevu toolchain, Agent UI class-modifier, and Web preview work as a patch changeset.
weapp-vite 7.1 wraps app.scss as a JavaScript default export. Skip that sidecar during transform and append page theme variables to compiled app.wxss so realworld production builds stay parseable.
Problem / Goal
Upgrade the WeChat mini-program toolchain without pinning patch versions, keep native-safe Wevu prop descriptors, restyle Weapp Agent UI status variants with class modifiers, and add a private browser preview for compiled mini-program artifacts.
Reproduction / Baseline
Pinned
wevu@7.0.4/weapp-vite@7.0.4/weapp-tailwindcss@^5.5.1, plus a localwevupatch. Component WXSS used[data-status]/[data-kind]selectors that fail WeChat component style verification. No in-repo Web host for compiled Wevu JS/JSON/WXML/WXSS.Root cause / Design
wevusetup-return-function/setupStatemismatch is reported upstream instead of patched locally: [Bug]: setup 返回的函数没有写入 setupState,proxy / bindModel 读不到 weapp-vite/weapp-vite#986is-running,is-failed,is-completed, …).data-*remains for tests/ARIA.?./??in generated attributes).@varo/weapp-webplus@varo/playground-weapp-previewhost compiled Wevu artifacts in glass-easel. This is not a WeChat client emulator.Control
Single sequential change on
feature/weapp-web-preview. Failed typecheck/lint/build blocks commit and PR.Change
wevu,weapp-vite, andweapp-tailwindcss; removepatchedDependencies.aria-current.@varo/weapp-webruntime/plugin and@varo/playground-weapp-preview.patches/).@varo-ui/weappand@varo-ui/cli(fixed public group).Non-goals
@varo/weapp-web.Verification
pnpm --filter @varo/playground-weapp buildVerified mini-program component paths and compiled stylespnpm --filter @varo/playground-weapp test -- src/agent-advanced.test.ts src/agent-rag.test.ts src/agent-workspace.test.ts e2e/dialog.spec.tsdevtools/build/mp-weixin/components/agent-ui/*.wxssis-completed/is-running/is-failedafc0429Risks
setupStatebug remains until weapp-vite/wevu ships a fix.Rollback
Revert this PR. No data migration. Lockfile and changeset restore the previous toolchain ranges.
Related
.changeset/wevu-seven-components.md(@varo-ui/weapppatch,@varo-ui/clipatch)