bug(polyfiller): check for Promise on global/window object
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
// 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(typeof Promise === "undefined") {
|
import win from "core/window"
|
||||||
|
|
||||||
|
if(typeof win.Promise === "undefined") {
|
||||||
require("core-js/fn/promise")
|
require("core-js/fn/promise")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ module.exports = require("./make-webpack-config")(rules, {
|
|||||||
publicPath: "/",
|
publicPath: "/",
|
||||||
noInfo: true,
|
noInfo: true,
|
||||||
hot: true,
|
hot: true,
|
||||||
|
disableHostCheck: true, // for development within VMs
|
||||||
stats: {
|
stats: {
|
||||||
colors: true
|
colors: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user