GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
561 stars 655 forks source link

[Poll] Optimizing the Q dependency #57

Open GuillaumeLeclerc opened 8 years ago

GuillaumeLeclerc commented 8 years ago

In order to reduce the build size and ship a library that will provide the best experience to your users. I'm currently trying to optimize the build of vue-google-maps.

I have two possible improvements in mind:

Tell me what you think

xkjyeah commented 8 years ago

Since we are already using Babel, why not use the built-in Promises library?

GuillaumeLeclerc commented 8 years ago

Does it support Deferred ? Because I know they are not part of the official Promise specification. As far as I understood the goal of babel is to implement next specifications of the language not more. I guess they didn't included Deferred

xkjyeah commented 8 years ago

Well, no, but it isn't hard to simulate Deferred:

function deferred() { var rv = {} rv.promise = new Promise((resolve, reject) => { rv.resolve = resolve; rv.reject = reject }) return rv }

On Thu, May 5, 2016 at 5:01 PM, Guillaume Leclerc notifications@github.com wrote:

Does it support Deferred ? Because I know they are not part of the official Promise specification. As far as I understood the goal of babel is to implement next specifications of the language not more. I guess they didn't included Deferred

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/GuillaumeLeclerc/vue-google-maps/issues/57#issuecomment-217106923