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

Feature - async/await support #2092

Merged
merged 3 commits into from
Dec 17, 2018

Conversation

patzick
Copy link
Collaborator

@patzick patzick commented Dec 14, 2018

Short description and why it's useful

I've added babel-polyfill to our build process, mostly to support async/await.

After full integration with babel7 this won't be necessary but we can write a readable async code right away! :)

Screenshots of visual changes before/after (if there are any)

I'll show Home.vue asyncData, because it's not so clear in diff mode
so before:
home_before

aaand after:
home_after

@patzick patzick requested review from pkarw and filrak December 14, 2018 20:15
@filrak
Copy link
Collaborator

filrak commented Dec 15, 2018

Niiiiice! Do you have before/after bundle sizes with this polyfills?

@patzick
Copy link
Collaborator Author

patzick commented Dec 16, 2018

@filrak Sure, i've done bundle analyzer. It's adding ~20kB for now, but first - it's only temporary workaround till we get full babel7; second - we need to work on vendor itself because it's huge anyway; and third - i think it's totally worth it for code readability like up above.

screen shot 2018-12-16 at 18 04 52

@filrak
Copy link
Collaborator

filrak commented Dec 17, 2018

Perfect :).

@filrak filrak merged commit 5ddfc04 into vuestorefront:develop Dec 17, 2018
@patzick patzick deleted the feature/async-await-support branch December 17, 2018 09:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants