Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 447
Strangerliquid Avatar asked Nov 19 '16 14:11

Strangerliquid


2 Answers

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.

like image 73
wintercounter Avatar answered Sep 17 '22 02:09

wintercounter


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

like image 34
batjko Avatar answered Sep 20 '22 02:09

batjko