terser/terser

empty constructor not removed

开放

#1,468 创建于 2023年10月24日

 (1 条评论) (0 个反应) (0 位负责人)JavaScript (386 个派生)batch import
good first issuesuboptimal-output

仓库指标

星标
 (8,215 个星标)
PR 合并指标
 (平均合并 8天 16小时) (30 天内合并 1 个 PR)

描述

Bug report or Feature request?

feature request?

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

whatever is in the repl?

Complete CLI command or minify() options used

default

terser input

export class Foo {
  constructor() {
  }
}

terser output or error

export class Foo{constructor(){}}

Expected result

export class Foo{}

贡献者指南