BundlerMinifier
BundlerMinifier copied to clipboard
async await inside class don't minify
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 ';'
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.
I have the same problem with latest version 3.2.451. Anything with Async Await does not minify.
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.