refactor(postcss): 迁出主包剩余 CSS AST 变换 - #1207
Merged
sonofmagic merged 2 commits intoSep 15, 2026
Merged
Conversation
把 hoist/create border preflight 和 preflight import / vendor keyframes 清理从主包挪到 @weapp-tailwindcss/postcss,主包只保留模板注入与生成编排。
Contributor
PR 性能基准报告:失败
总览
Benchmark 项目矩阵
Benchmark 插件处理阶段
Benchmark 内存
Watch 明细
门禁与诊断
运行链接统计口径
|
把 selector/unit 兼容、@apply 清理、空 CSS 块扫描以及 class style value 编译从主包挪到 @weapp-tailwindcss/postcss。Vite marker 去重仍留在主包。
Owner
Author
|
已继续迁出剩余 CSS 变换:
Vite marker 去重、SFC |
sonofmagic
merged commit Sep 15, 2026
87cbb22
into
codex/postcss-css-ownership
205 of 208 checks passed
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.
摘要
在 #1206 之后把主包里剩余的 CSS AST 变换迁到
@weapp-tailwindcss/postcss。变更
hoistUniAppXBorderPreflight/createUniAppXBorderPreflightpreflightimport 清理和@theme内厂商前缀 keyframes 清理@apply规则清理finalizeMiniProgramCssStructure@apply展开@reference路径解析和生成编排验证
pnpm --filter @weapp-tailwindcss/postcss testpnpm --filter weapp-tailwindcss exec vitest run test/bundlers/shared/generator-css/legacy-selectors.test.ts test/bundlers/shared/generator-css/legacy-compat.test.ts test/bundlers/final-css-cleanup.unit.test.ts test/uni-app-x/style-asset.test.ts test/uni-app-x/border-preflight.test.ts test/tailwindcss/v4-engine.test.ts test/ci/architecture-contract.test.ts基于 #1206。