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

Function hotApply

public/bundle.js:270–482  ·  view source on GitHub ↗
(options, callback)

Source from the content-addressed store, hash-verified

268/******/ }
269/******/
270/******/ function hotApply(options, callback) {
271/******/ if(hotStatus !== "ready") throw new Error("apply() is only allowed in ready status");
272/******/ if(typeof options === "function") {
273/******/ callback = options;
274/******/ options = {};
275/******/ } else if(options && typeof options === "object") {
276/******/ callback = callback || function(err) { if(err) throw err; };
277/******/ } else {
278/******/ options = {};
279/******/ callback = callback || function(err) { if(err) throw err; };
280/******/ }
281/******/
282/******/ function getAffectedStuff(module) {
283/******/ var outdatedModules = [module];
284/******/ var outdatedDependencies = {};
285/******/
286/******/ var queue = outdatedModules.slice();
287/******/ while(queue.length > 0) {
288/******/ var moduleId = queue.pop();
289/******/ var module = installedModules[moduleId];
290/******/ if(!module || module.hot._selfAccepted)
291/******/ continue;
292/******/ if(module.hot._selfDeclined) {
293/******/ return new Error("Aborted because of self decline: " + moduleId);
294/******/ }
295/******/ if(moduleId === 0) {
296/******/ return;
297/******/ }
298/******/ for(var i = 0; i < module.parents.length; i++) {
299/******/ var parentId = module.parents[i];
300/******/ var parent = installedModules[parentId];
301/******/ if(parent.hot._declinedDependencies[moduleId]) {
302/******/ return new Error("Aborted because of declined dependency: " + moduleId + " in " + parentId);
303/******/ }
304/******/ if(outdatedModules.indexOf(parentId) >= 0) continue;
305/******/ if(parent.hot._acceptedDependencies[moduleId]) {
306/******/ if(!outdatedDependencies[parentId])
307/******/ outdatedDependencies[parentId] = [];
308/******/ addAllToSet(outdatedDependencies[parentId], [moduleId]);
309/******/ continue;
310/******/ }
311/******/ delete outdatedDependencies[parentId];
312/******/ outdatedModules.push(parentId);
313/******/ queue.push(parentId);
314/******/ }
315/******/ }
316/******/
317/******/ return [outdatedModules, outdatedDependencies];
318/******/ }
319/******/ function addAllToSet(a, b) {
320/******/ for(var i = 0; i < b.length; i++) {
321/******/ var item = b[i];
322/******/ if(a.indexOf(item) < 0)
323/******/ a.push(item);
324/******/ }
325/******/ }
326/******/
327/******/ // at begin all updates modules are outdated

Callers 1

hotUpdateDownloadedFunction · 0.85

Calls 5

getAffectedStuffFunction · 0.85
hotSetStatusFunction · 0.85
callbackFunction · 0.85
addAllToSetFunction · 0.85
__webpack_require__Function · 0.85

Tested by

no test coverage detected