BundlerMinifier icon indicating copy to clipboard operation
BundlerMinifier copied to clipboard

async await inside class don't minify

Open TheoVC opened this issue 4 years ago • 3 comments

Installed product versions

  • Visual Studio 2017
  • extension on visual studio: 2.8.396 nugget package installed: 3.2.447

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 avatar Jun 05 '20 22: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 have the same problem with latest version 3.2.451. Anything with Async Await does not minify.

Gruski avatar Aug 18 '20 21:08 Gruski

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.

vefimov-dev avatar Apr 16 '21 17:04 vefimov-dev