We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to compress a script with a class on the site (https://jscompress.com), it gives me an error. Take this simple example:
class MyClass { constructor(item) { this.item = item } thing() { alert(this.item) } } new MyClass()
It gives me this an error: Unexpected token: name «MyClass», expected: punc «;» (line: 1, col: 6)
I would really like class compression, as it is supported in a lot of browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
The text was updated successfully, but these errors were encountered:
enable ECMAScript 2021 (via babel-minify) and it will minify
Sorry, something went wrong.
No branches or pull requests
When I try to compress a script with a class on the site (https://jscompress.com), it gives me an error. Take this simple example:
It gives me this an error:
Unexpected token: name «MyClass», expected: punc «;» (line: 1, col: 6)
I would really like class compression, as it is supported in a lot of browsers:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
The text was updated successfully, but these errors were encountered: