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:::
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:" ,
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](https://user-images.githubusercontent.com/67676701/161541491-021a9f8e-c168-4b26-96cb-3e84394add6b.PNG)
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.