Skip to content

fix(uni-app-x): 修复 important utility 跨端编译 - #1120

Merged
sonofmagic merged 2 commits into
mainfrom
codex/issue-1113-native-important
Aug 27, 2026
Merged

fix(uni-app-x): 修复 important utility 跨端编译#1120
sonofmagic merged 2 commits into
mainfrom
codex/issue-1113-native-important

Conversation

@sonofmagic

Copy link
Copy Markdown
Owner

变更

  • 修复 !mt-6mt-6! 与局部 Sass @apply 在 uni-app x Web/原生链路中的编译顺序问题。
  • 使用 AST 中间标记跨过 Sass,再在 PostCSS 阶段恢复 important 语义。
  • 补充 Web/native/HMR 回归测试与最小 .uvue fixture。

验证

  • pnpm exec vitest run packages/postcss/test/uni-app-x.test.ts packages/weapp-tailwindcss/test/uni-app-x/index.test.ts packages/weapp-tailwindcss/test/uni-app-x/vite.test.ts
  • pnpm --filter weapp-tailwindcss build
  • pnpm --filter @weapp-tailwindcss/postcss build
  • Android Vapor 与 Web 初次编译已在本地复现项目验证。
  • HBuilderX Web HMR 自动化当前受 IDE 进程无输出阻塞,代码已加入 pre 阶段 full reload 保护。

Refs #1113

@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 70d127f

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

@sonofmagic
sonofmagic force-pushed the codex/issue-1113-native-important branch from b1d596d to f6bf178 Compare August 27, 2026 06:42
@sonofmagic
sonofmagic force-pushed the codex/issue-1113-native-important branch from f6bf178 to 0ecbb0e Compare August 27, 2026 07:00
@sonofmagic
sonofmagic merged commit 5765d3f into main Aug 27, 2026
108 of 109 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