Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty constructor not removed #1468

Open
NullVoxPopuli opened this issue Oct 24, 2023 · 1 comment
Open

empty constructor not removed #1468

NullVoxPopuli opened this issue Oct 24, 2023 · 1 comment
Labels
good first issue This issue is good for contributors who are getting started suboptimal-output

Comments

@NullVoxPopuli
Copy link

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{}
@fabiosantoscode fabiosantoscode added good first issue This issue is good for contributors who are getting started suboptimal-output labels Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue This issue is good for contributors who are getting started suboptimal-output
Projects
None yet
Development

No branches or pull requests

2 participants