MCPcopy
hub / github.com/aosabook/500lines / hotCreateRequire

Function hotCreateRequire

spreadsheet/code/as-react-livescript/main.js:52–98  ·  view source on GitHub ↗
(moduleId)

Source from the content-addressed store, hash-verified

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

Callers 2

__webpack_require__Function · 0.85
main.jsFile · 0.85

Calls 2

hotSetStatusFunction · 0.85
finishChunkLoadingFunction · 0.85

Tested by

no test coverage detected