-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: improve get literal value for conditional expression #6000
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
feat: improve get literal value for conditional expression #6000
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6000 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 270 270
Lines 10559 10569 +10
Branches 2815 2819 +4
=======================================
+ Hits 10432 10442 +10
Misses 87 87
Partials 40 40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good.
This PR has been released as part of rollup@4.45.0. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
Improve
getLiteralValueAtPath
for ConditionalExpression when used branch is unknown, this PR will try to get the literal value of consequent branch and alternate branch, and decide a literal value for ConditionalExpression based on that