Skip to content

fix(uni-app-x): 支持自定义局部样式路径匹配 - #1096

Merged
sonofmagic merged 1 commit into
mainfrom
codex/issue-1095
Aug 20, 2026
Merged

fix(uni-app-x): 支持自定义局部样式路径匹配#1096
sonofmagic merged 1 commit into
mainfrom
codex/issue-1095

Conversation

@sonofmagic

Copy link
Copy Markdown
Owner

变更说明

  • uniAppX.componentLocalStyles 增加 componentMatcherpageMatcher,支持 layouts 等自定义目录
  • 在调用 matcher 前统一清理 query/hash,并将路径分隔符规范化为正斜杠
  • Harmony 构建通过 chunk 的 __file 元数据复用组件匹配规则,缺少元数据时保留原有组件目录兜底
  • 补充中英文 uni-app x 接入文档与 patch changeset

验证

  • pnpm --filter weapp-tailwindcss exec vitest run test/source-line-limit.test.ts test/uni-app-x/index.test.ts test/uni-app-x/options.test.ts test/uni-app-x/style-asset.test.ts test/uni-app-x/vite.test.ts test/presets/uni-app-x.test.ts
  • pnpm test:core
  • pnpm build:pkgs
  • pnpm --filter weapp-tailwindcss build
  • pnpm --filter @weapp-tailwindcss/website build
  • 变更源码 ESLint 检查

Related to #1095

@changeset-bot

changeset-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6cf36ad

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 merged commit 3885e8b into main Aug 20, 2026
104 of 106 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