madskristensen / BundlerMinifier

Visual Studio extension
Other
614 stars 172 forks source link

async await inside class don't minify #490

Open TheoVC opened 4 years ago

TheoVC commented 4 years ago

Installed product versions

Description

async await inside classes don't minify

Steps to recreate

Create a js file, then add it to a bundle, then publish the project or right click in file and select Bundler & Minifier / Minify File

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

I get the error: (Bundler & Minifier) Expected ';'

TheoVC commented 4 years ago

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.

Gruski commented 4 years ago

I have the same problem with latest version 3.2.451. Anything with Async Await does not minify.

vefimov-dev commented 3 years ago

Last updated night build v. 3.2 (23 days ago from now (16/04/21) ) has wrong binding to Newtonsoft.JSON. BM try to use v. 13 instead of v. 9. I downloaded source code from master brunch and build it and then BM works well.