madskristensen / BundlerMinifier

Visual Studio extension
Other
611 stars 171 forks source link

ES-6 Features are throwing error while minifying and bundling with /BundlerMinifier #581

Open anujgupta091 opened 2 years ago

anujgupta091 commented 2 years ago

Installed product versions

Description

Whenever I try to use ES-6 syntax in my code, bundler and minifier throws an error :::: ===> "(Bundler & Minifier) Expected expression:" ,

but here is the twist that in other files all the ES-6 syntax work as expected. So half of .js files in my project are throwing this error and almost half are not. I also tried using bundlerminifierplus but the same result.

Also, if I'm using weboptimizer or any other alternative, if this possible to make different entry points for bundling like in below Json format:::

{ "outputFileName": "wwwroot/css/business.min.css", "inputFiles": [ "wwwroot/css/site_3.css", "wwwroot/css/site_4.css", "wwwroot/css/site.css" ] },

{ "outputFileName": "wwwroot/js/bundleplus.min.js", "inputFiles": [ "wwwroot/js/coachingAvail.js", "wwwroot/js/jobSector.js", "wwwroot/js/cast.js" ] }, Capture2222

Steps to recreate

Use any ES-6 feature like arrow function or any feature of your choice. Try to minify and bundle. If all went well Kudos to you.... if not and also faced the same error, help me with getting out of it.

Current behavior

bundler and minifier throws an error :::: ===> "(Bundler & Minifier) Expected expression:" ,

Expected behavior

should have bundled and minified.

Seabizkit commented 2 years ago

please add support