Skip to content

Commit

Permalink
bug(polyfiller): check for Promise on global/window object
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey authored Jan 6, 2018
1 parent fc07040 commit 0751022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/polyfills.js
Original file line number Diff line number Diff line change
@@ -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")
}

Expand Down
1 change: 1 addition & 0 deletions webpack-hot-dev-server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module.exports = require("./make-webpack-config")(rules, {
publicPath: "/",
noInfo: true,
hot: true,
disableHostCheck: true, // for development within VMs
stats: {
colors: true
},
Expand Down

0 comments on commit 0751022

Please sign in to comment.