MCPcopy Create free account
hub / github.com/ReactJSResources/react-webpack-babel / check

Function check

public/bundle.js:7866–7908  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7864 return lastData.indexOf(__webpack_require__.h()) >= 0;
7865 };
7866 var check = function check() {
7867 module.hot.check(function(err, updatedModules) {
7868 if(err) {
7869 if(module.hot.status() in {abort: 1, fail: 1}) {
7870 console.warn("[HMR] Cannot check for update. Need to do a full reload!");
7871 console.warn("[HMR] " + err.stack || err.message);
7872 } else {
7873 console.warn("[HMR] Update check failed: " + err.stack || err.message);
7874 }
7875 return;
7876 }
7877
7878 if(!updatedModules) {
7879 console.warn("[HMR] Cannot find update. Need to do a full reload!");
7880 console.warn("[HMR] (Probably because of restarting the webpack-dev-server)");
7881 return;
7882 }
7883
7884 module.hot.apply({
7885 ignoreUnaccepted: true
7886 }, function(err, renewedModules) {
7887 if(err) {
7888 if(module.hot.status() in {abort: 1, fail: 1}) {
7889 console.warn("[HMR] Cannot apply update. Need to do a full reload!");
7890 console.warn("[HMR] " + err.stack || err.message);
7891 } else {
7892 console.warn("[HMR] Update failed: " + err.stack || err.message);
7893 }
7894 return;
7895 }
7896
7897 if(!upToDate()) {
7898 check();
7899 }
7900
7901 __webpack_require__(57)(updatedModules, renewedModules);
7902
7903 if(upToDate()) {
7904 console.log("[HMR] App is up to date.");
7905 }
7906 });
7907 });
7908 };
7909 var addEventListener = window.addEventListener ? function(eventName, listener) {
7910 window.addEventListener(eventName, listener, false);
7911 } : function (eventName, listener) {

Callers 1

bundle.jsFile · 0.85

Calls 2

upToDateFunction · 0.85
__webpack_require__Function · 0.85

Tested by

no test coverage detected