fix(css): 修复跨资产变量 calc 透传并统一 CI 版本契约 - #1195
Open
sonofmagic wants to merge 18 commits into
Open
Conversation
🦋 Changeset detectedLatest commit: 3f41010 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 |
Contributor
PR 性能基准报告:部分结果
总览
Benchmark 项目矩阵
Benchmark 插件处理阶段
Benchmark 内存
Watch 明细
门禁与诊断
运行链接统计口径
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tailwind CSS v4 的主题变量和 utility CSS 分阶段生成时,calc 处理器拿不到变量上下文;数组和对象配置的透传也不一致,导致选定变量无法预计算。
本 PR 将生成阶段的变量映射传入 CSS 处理链,使用 value AST 处理变量引用与 fallback,并补充字符串、正则、对象、布尔配置及顶层/嵌套入口的回归测试。完整生成路径仅在 calc 需要变量时额外收集上下文,减少无用的 PostCSS 解析。
CI 的 pnpm 版本统一读取根 packageManager;fixture 工具链根据依赖声明和实际安装元数据校验,模板契约复用仓库版本来源。候选包切换后直接读取安装目录元数据,避免 require 缓存误报旧版本。保留冻结安装、release-age 策略和原有性能门槛。
中文 changeset 覆盖 weapp-tailwindcss、@weapp-tailwindcss/postcss 和 @weapp-tailwindcss/postcss-calc;工程 lesson 记录配置透传、版本契约和验证边界。
本地验证:
Related to #1194