Skip to content

Provide ES2015 bundle? #6937

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

Closed
myst729 opened this issue Oct 27, 2017 · 2 comments
Closed

Provide ES2015 bundle? #6937

myst729 opened this issue Oct 27, 2017 · 2 comments

Comments

@myst729
Copy link

myst729 commented Oct 27, 2017

What problem does this feature solve?

Recently I'm working on a project that attempts to deploy ES2015 code to production. The idea was inspired by Philip Walton's post.

I hacked vuejs-templates/webpack to output dual bundles with feature detection to downgrade. The benefit is significant: ES2015 script execution time is only about 55% of ES5! And the bundle size reduces too. If vue (as well as vue-router, vuex, etc.) could provide ES2015 bundles, the performance boost can be even more significant.

According to the es6 compatibility table, ES2015 compatible browsers have got a lot of market shares. Although vue relies on ES5 feature Object.defineProperty, I think it is still meaningful to provide ES2015 bundle as an option.

What does the proposed API look like?

This request is not about some particular APIs.

@felixbuenemann
Copy link
Contributor

I believe PR #7110 tackles this issue.

@felixbuenemann
Copy link
Contributor

To clarify: The ESM build also disables buble ES6 to ES5 transpilation in addition to allowing direct import in the browser as a module.

@myst729 myst729 closed this as completed Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants