-
Notifications
You must be signed in to change notification settings - Fork 4.9k
fix: postCss 支持绝对路径插件 #18683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: postCss 支持绝对路径插件 #18683
Conversation
Walkthrough在三个 PostCSS 配置文件中优化了本地插件路径解析逻辑。修改后,仅当插件名称为相对路径时才与应用路径进行拼接;若插件名已为绝对路径,则保持原值,避免重复拼接或错误解析。 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-08-25T22:16:50.118ZApplied to files:
🧬 Code graph analysis (1)packages/taro-webpack5-runner/src/postcss/postcss.h5.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
自定义 taro 插件通过 modifyRunnerOpts api 修改 postcss 配置时 无法使用 自定义 taro 插件依赖的 postcss plugin 具体 case 参考 仓库代码 |
|
@Single-Dancer 有可能把taro 支持分包异步加载放到Taro文档中推荐吗?能解决微信小程序主包体积不够的问题。 |
cd24a67 to
465fbca
Compare
@tutuxxx 帮忙看看 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18683 +/- ##
========================================
Coverage 56.32% 56.32%
========================================
Files 447 447
Lines 23345 23345
Branches 5745 5796 +51
========================================
Hits 13149 13149
- Misses 8363 8492 +129
+ Partials 1833 1704 -129
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
@tutuxxx 辛苦看看呢 |
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.