feat(api-babel): 支持Taro.xx.yy形式的api treeshaking#18848
Conversation
Walkthrough此PR 将大量 package.json 的版本从 4.1.11 升级到 4.1.12-alpha.1,并在 packages/babel-plugin-transform-taroapi/src/index.ts 中新增/扩展对 Taro 命名空间(Taro.xx.yy)形式的识别与树摇重写逻辑(含对 TS cast 与可选链的处理)。 Changes
Sequence Diagram(s)(无序列图 — 变更未满足生成时需的多角色顺序交互条件) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
诗
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18848 +/- ##
==========================================
- Coverage 56.31% 56.26% -0.05%
==========================================
Files 447 447
Lines 23352 23399 +47
Branches 5776 5800 +24
==========================================
+ Hits 13150 13165 +15
- Misses 8372 8394 +22
- Partials 1830 1840 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
Summary by CodeRabbit
发布说明
新功能
其他更新