WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Javascript classes don't work

Open lovettchris opened this issue 3 years ago • 1 comments

EcmaScript6/ECMAScript2015 added classes,


class User {
    ref = null;
    constructor(r) {
        this.ref = r;
    }
}

when I try and minify this I get a bunch of errors like:

Error		(Bundler & Minifier) Expected ';'		site.min.js	15	

lovettchris avatar Aug 17 '21 07:08 lovettchris

I assume this is not on the radar for this project?

https://github.com/trullock/NUglify/issues/235

hammypants avatar Sep 23 '21 21:09 hammypants