BundlerMinifier icon indicating copy to clipboard operation
BundlerMinifier copied to clipboard

Modern JS does not minify

Open HTD opened this issue 4 years ago • 4 comments

NuGet package version: 3.2.447.

Following code cause "unexpected token" error:

class Test {
    static rxComaSeparator = new RegExp(/,\s*/);
}

Offending position is static keyword. Errors on class regular and async methods.

HTD avatar Apr 28 '20 11:04 HTD

I have the same problem. VS2019 (16.4.3) and BuildBundlerMinifier 3.2.447

Do not minify with arrow syntax, async/await, spreads or other ES8 features.

The nuget package is very useful but I would have to minify the most recent JS (ES8).

Thanks a lot!

sanmolhec avatar Apr 30 '20 12:04 sanmolhec

I have the same problem.

even with something simple like this:

class Person{
  async MyFunction(){
     let rtn = await getJSON();
  }
}

TheoVC avatar Jun 06 '20 01:06 TheoVC

Thanks to SuperShowwei... the definitive solution !!!! to all the problems.... you have to update de extension MANUALLY!!! to upgrade vsix on http://vsixgallery.com/extension/a0ae318b-4f07-4f71-93cb-f21d3f03c6d3/, i don't know why the author do not upload new version to marketplace.

TheoVC avatar Jun 06 '20 01:06 TheoVC

I've just updated the extension and it still doesn't work.

HTD avatar Sep 29 '20 06:09 HTD