Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anujgupta091 opened this issue Apr 4, 2022 · 1 comment

Comments

@anujgupta091
Copy link

anujgupta091 commented Apr 4, 2022

Installed product versions

  • Visual Studio: [2019 Professional]
  • This extension: [3.2.449]

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
Copy link

please add support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants