Skip to content

Spread Operator minified wrong #30

@MacStevins

Description

@MacStevins
  • Version (npm -v): 11.9.0
  • Node Version (node -v): 24.14.0
  • OS (uname -a on Linux): Linux 6.17.9-76061709-generic #202511241048176470475122.04~b24b425 SMP PREEMPT_DYNAMIC Tue D x86_64 x86_64 x86_64 GNU/Linux

When minifying the code below:

let elms = [...document.querySelectorAll('div')]

elms.map(e => {
	console.log(e)
})

It outputs:

let A=document.querySelectorAll('div');A.map(e=>console.log(e))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions