feat(minifier): evaluate String constructor#12943
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 JavaScript minifier to evaluate String constructor calls with constant arguments at compile time. The improvement transforms String(value) calls into string literals when the argument can be statically evaluated and has no side effects.
- Replaces manual literal checking with constant evaluation for
String()calls - Adds side effect checking to ensure safe transformations
- Extends test coverage for boolean and expression arguments
Merge activity
|
CodSpeed Instrumentation Performance ReportMerging #12943 will not alter performanceComparing Summary
|

No description provided.