UglifyJS-online
UglifyJS-online copied to clipboard
Static property
Apparently the latest version failed to handle static fields in class.
Try to minify sample codes from developer.mozilla.org:
class ClassWithStaticMethod {
static staticProperty = 'someValue';
static staticMethod() {
return 'static method has been called.';
}
static {
console.log('Class static initialization block called');
}
}
and get the error: "Parse error: Unexpected token: operator (=)"
The issue is that we're stuck on an old version. I'll merge a PR updating to the latest version, if you submit one.
This has been fixed in https://github.com/Skalman/UglifyJS-online/pull/18.