Strangerliquid
Strangerliquid

Reputation: 237

Babel-polyfill Promises and "finally" support

How to enable finally method support if i'm using babel-polyfill in my project build on React-Redux stack

Upvotes: 6

Views: 7656

Answers (3)

batjko
batjko

Reputation: 1062

I believe, the Babel-Polyfill shim uses core-js under the hood, which does support Promise.finally: https://github.com/zloirock/core-js#commonjs

enter image description here

Upvotes: 1

wintercounter
wintercounter

Reputation: 7488

Actually, now it has a proposal, and it's recently got into Stage-3, WebKit already supports it. Spec compliant shim/polyfill libraries are already available too. We can expect an update from the Promise polyfill library maintainers also.

Upvotes: 4

kevin628
kevin628

Reputation: 3526

The ES6 standard does not support the finally phase of a promise, as T.J. Crowder mentioned in the comments to your question. If you want that kind of support, you might look into promises from a library like RSVP.

Upvotes: 0

Related Questions