fix: remove empty mini-program at-rules#1006
Draft
sonofmagic wants to merge 13 commits into
Draft
Conversation
🦋 Changeset detectedLatest commit: 22c7ec6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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
marked this pull request as draft
July 21, 2026 15:48
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.
Summary
修复小程序编译产物中残留空
@media、@supports等块级 at-rule 导致 WXSS 编译报错的问题。Root Cause
空 at-rule 清理只覆盖主样式块,非主样式块、缓存资产和 CSS 覆盖合并路径可能在子规则被移除后保留空父容器;单次正向遍历也会漏掉嵌套空容器。
Changes
@import、@charset等语句型 at-rule。Verification
pnpm --filter @weapp-tailwindcss/postcss test:612 passedpnpm --filter weapp-tailwindcss test:2980 passed,29 skippedgit diff --check通过weapp-tailwindcss全量 TypeScript 检查仍受仓库现有跨模块类型错误影响,与本 PR 改动无关。