Skip to content

Commit db4aa95

Browse files
authored
Only polyfill Promise if it doesn't exist at all
1 parent f5df9ff commit db4aa95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/polyfills.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
2-
require("core-js/fn/promise")
2+
3+
if(!window.Promise) {
4+
require("core-js/fn/promise")
5+
}

0 commit comments

Comments
 (0)