terser/terser

Useless contsructor not removed

Open

#1,467 建立於 2023年10月24日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (8,215 star) (386 fork)batch import
good first issuesuboptimal-output

描述

Bug report or Feature request?

feature request?

Version (complete output of terser -V or specific git commit)

whatever is in the REPL

terser input

class Bar {}
export class Foo extends Bar {
  constructor() {
    super(...arguments)
  }
}

terser output or error

class s{}export class Foo extends s{constructor(){super(...arguments)}}

Expected result

class s{}export class Foo extends s{}

貢獻者指南