Skip to content

fix(uni-app-x): 修复 Web 局部样式重要修饰符 - #1114

Merged
sonofmagic merged 1 commit into
mainfrom
codex/issue-1113-uni-app-x-important
Aug 25, 2026
Merged

fix(uni-app-x): 修复 Web 局部样式重要修饰符#1114
sonofmagic merged 1 commit into
mainfrom
codex/issue-1113-uni-app-x-important

Conversation

@sonofmagic

Copy link
Copy Markdown
Owner

变更说明

修复 uni-app x Web 局部样式桥接将重要修饰符序列化为 Sass 插值,导致 PostCSS 报 Unknown word "!" 并使页面 Tailwind 样式缺失的问题。

  • Web 局部样式输出 utility!
  • 原生 App/Harmony 保留 utility#{'!'} 兼容行为
  • 增加 uni-app x 与 PostCSS 回归测试

本地验证

  • pnpm --filter weapp-tailwindcss exec vitest run test/uni-app-x/index.test.ts --coverage.enabled=false
  • pnpm --filter @weapp-tailwindcss/postcss exec vitest run test/uni-app-x.test.ts --coverage.enabled=false
  • pnpm --filter weapp-tailwindcss build
  • pnpm --filter @weapp-tailwindcss/postcss build

Refs #1113

@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 08cadee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonofmagic
sonofmagic merged commit ec25a3b into main Aug 25, 2026
106 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant