BundlerMinifier
BundlerMinifier copied to clipboard
Modern JS does not minify
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.
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!
I have the same problem.
even with something simple like this:
class Person{
async MyFunction(){
let rtn = await getJSON();
}
}
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've just updated the extension and it still doesn't work.