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

can not bundle javascript async await #39

Closed
bastienJS opened this issue Dec 21, 2017 · 2 comments
Closed

can not bundle javascript async await #39

bastienJS opened this issue Dec 21, 2017 · 2 comments

Comments

@bastienJS
Copy link

Installed product versions
Visual Studio: 2017 Comunity Edition (15.4.4)
This extension: Bundler & Minifier 2.5.359 (Latest version of Extension available in VS Marketplace)
Description
Error:

(Bundler & Minifier) Expected ';'

When minifing a java script file with async and await keywords, finds error.

original unminified file works as expected in web browsers.

Steps to recreate
Create new js file
write any function with async await
example:

async function someName() {
const response = await fetch('../some/URL');
return await response.json();
}
Current behavior
Error appears and wont minify

Expected behavior
Should minify

@iliDaedalus
Copy link

2years later... and I wonder if there are any news regarding this issue?

@nul
Copy link

nul commented Mar 10, 2020

This actually works correctly with the latest version.

@trullock trullock closed this as completed Jun 8, 2020
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

4 participants