-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels