Skip to content

[Feature]: node target + minify #4795

@sxzz

Description

@sxzz

Reproduction link or steps

https://bundler.sxzz.dev/#eNptTs0KgzAMfpXSyxRExo6FvUkvoql01ERqyhzad19rxV12Cfl+ku/bpJFqkxYHWFte8o5S/XAj+wQdsDBE4ilM5xbQqBHWmXxiA/ZsCYXBqhabRnEY911U5YB9gDrTHjj45CPSGDWmzyBVVmMjPTk30BvbntDYsX1dRf4opdKZP4DpguOSzL7DxZCfVMGJ6fwIrMQNaYDH/dZkOh6TAs8hSadzsmjNRx19L1fuGWP8AnEzYmk=

  • It works well if setting target to esnext
  • But logical assignment is supported on Node 20

What is expected?

let e=!1;function t(){return e||=!0,e}export{t as fn};`

What is actually happening?

let e=!1;function t(){return e||(e=!0),e}export{t as fn};

System Info

N/A

Any additional comments?

Downstream #7295

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions