Skip to content

fix(api-babel): 三层api兼容可选链,类型断言,属性取值等场景

3f1caf6
Select commit
Loading
Failed to load commit list.
Open

feat(api-babel): 支持Taro.xx.yy形式的api treeshaking #18848

fix(api-babel): 三层api兼容可选链,类型断言,属性取值等场景
3f1caf6
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Mar 2, 2026 in 0s

56.26% (target 75.00%)

View this Pull Request on Codecov

56.26% (target 75.00%)

Details

Codecov Report

❌ Patch coverage is 39.62264% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.26%. Comparing base (3317bb2) to head (3f1caf6).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...ckages/babel-plugin-transform-taroapi/src/index.ts 39.62% 20 Missing and 12 partials ⚠️

❌ Your project check has failed because the head coverage (56.26%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            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     
Files with missing lines Coverage Δ
...ckages/babel-plugin-transform-taroapi/src/index.ts 75.88% <39.62%> (-16.81%) ⬇️

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.