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

Function hotCreateRequire

public/bundle.js:61–107  ·  view source on GitHub ↗
(moduleId)

Source from the content-addressed store, hash-verified

59/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
60/******/
61/******/ function hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars
62/******/ var me = installedModules[moduleId];
63/******/ if(!me) return __webpack_require__;
64/******/ var fn = function(request) {
65/******/ if(me.hot.active) {
66/******/ if(installedModules[request]) {
67/******/ if(installedModules[request].parents.indexOf(moduleId) < 0)
68/******/ installedModules[request].parents.push(moduleId);
69/******/ if(me.children.indexOf(request) < 0)
70/******/ me.children.push(request);
71/******/ } else hotCurrentParents = [moduleId];
72/******/ } else {
73/******/ console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId);
74/******/ hotCurrentParents = [];
75/******/ }
76/******/ return __webpack_require__(request);
77/******/ };
78/******/ for(var name in __webpack_require__) {
79/******/ if(Object.prototype.hasOwnProperty.call(__webpack_require__, name)) {
80/******/ fn[name] = __webpack_require__[name];
81/******/ }
82/******/ }
83/******/ fn.e = function(chunkId, callback) {
84/******/ if(hotStatus === "ready")
85/******/ hotSetStatus("prepare");
86/******/ hotChunksLoading++;
87/******/ __webpack_require__.e(chunkId, function() {
88/******/ try {
89/******/ callback.call(null, fn);
90/******/ } finally {
91/******/ finishChunkLoading();
92/******/ }
93/******/ function finishChunkLoading() {
94/******/ hotChunksLoading--;
95/******/ if(hotStatus === "prepare") {
96/******/ if(!hotWaitingFilesMap[chunkId]) {
97/******/ hotEnsureUpdateChunk(chunkId);
98/******/ }
99/******/ if(hotChunksLoading === 0 && hotWaitingFiles === 0) {
100/******/ hotUpdateDownloaded();
101/******/ }
102/******/ }
103/******/ }
104/******/ });
105/******/ };
106/******/ return fn;
107/******/ }
108/******/
109/******/ function hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars
110/******/ var hot = {

Callers 2

__webpack_require__Function · 0.85
bundle.jsFile · 0.85

Calls 2

hotSetStatusFunction · 0.85
finishChunkLoadingFunction · 0.85

Tested by

no test coverage detected