When minification is enabled, OXC incorrectly transforms:
new Array(Foo, ...Bar)
into
[Foo]
This drops the spread arguments entirely and is a major bug.
✅ Expected output
[Foo, ...Bar]
⚠️ This is critical
- Produces incorrect JavaScript
- Silent runtime behavior changes
- Data loss due to dropped spread elements
Reproducible link
When minification is enabled, OXC incorrectly transforms:
new Array(Foo, ...Bar)into
[Foo]This drops the spread arguments entirely and is a major bug.
✅ Expected output
[Foo, ...Bar]Reproducible link