No successful run was found on main (46b15ae) during the generation of this report, so 934d8a5 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
fix(es/minifier): Prevent array.join optimization with nullable values
The minifier was incorrectly optimizing array.join('''') to string concatenation
when the array contained optional chaining or member expressions that could
produce undefined values. This caused undefined to be converted to the string
undefined instead of an empty string.
Fixed by preventing the optimization when array contains:
- OptChain expressions (e.g., obj?.prop)
- Member expressions that might be undefined
Fixes #10936
Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
Apply reviewer suggestions: Remove comments from OptChain and Member cases
Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
6c8ee70
1 month ago
by claude[bot]
-0.01%
fix(es/minifier): Make array.join optimization more conservative
Only allow optimization for literals (string, number, null) and pure undefined.
All other expressions (identifiers, function calls, member expressions, etc.)
can potentially be null/undefined and should prevent optimization.
Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>