清理代码

pull/224/MERGE
ChenX 6 years ago
parent 12a6dfe5ff
commit 61befa3f3a

@ -4,7 +4,7 @@ import { app } from "../ApplicationServices/Application";
const requireIndirect = const requireIndirect =
typeof __webpack_require__ !== 'undefined' ? __webpack_require__ : require; typeof __webpack_require__ !== 'undefined' ? __webpack_require__ : require;
const makeHotExport = sourceModule => const makeHotExport = function (sourceModule): any
{ {
const updateModule = (possibleError?) => const updateModule = (possibleError?) =>
{ {
@ -55,7 +55,7 @@ const makeHotExport = sourceModule =>
{ {
updateModule(); updateModule();
} }
}) });
} }
} }
} }
@ -73,7 +73,6 @@ export const HotCMD =
// remove itself from a cache // remove itself from a cache
delete cache[module.id]; delete cache[module.id];
// setup hot for caller // setup hot for caller
//@ts-ignore
return makeHotExport(Object.assign({ id: parent.i }, parent)); return makeHotExport(Object.assign({ id: parent.i }, parent));
} else } else
{ {

Loading…
Cancel
Save