bug(polyfiller): check for Promise on global/window object

This commit is contained in:
kyle
2018-01-06 00:19:29 -06:00
committed by GitHub
parent fc070408f6
commit 0751022b77
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
if(typeof Promise === "undefined") {
import win from "core/window"
if(typeof win.Promise === "undefined") {
require("core-js/fn/promise")
}