Only polyfill Promise if it doesn't exist at all

This commit is contained in:
Kyle
2017-08-25 15:56:54 -07:00
committed by GitHub
parent f5df9ff173
commit db4aa95d4a

View File

@@ -1,2 +1,5 @@
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11 // Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
if(!window.Promise) {
require("core-js/fn/promise") require("core-js/fn/promise")
}