feat(minifier): fold ({ ...!0 }) into ({})#12935
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the minifier's ability to fold object spread operations by expanding the detection of expressions that can be safely removed from spread operations. The change consolidates the logic for determining when spread elements should be folded and extends support to include evaluated expressions that resolve to non-string values.
- Refactored spread element folding logic into a reusable helper function
- Extended folding support to expressions that evaluate to non-string values without side effects
- Added test coverage for logical NOT operations (
!0and!1)
CodSpeed Instrumentation Performance ReportMerging #12935 will not alter performanceComparing Summary
Footnotes |
Merge activity
|
5f43357 to
2c303f5
Compare

No description provided.