ud
Version:
Utilities for updating code live with hot module replacement
21 lines (20 loc) • 1.65 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.defn = defn;
exports.defobj = defobj;
exports.defonce = defonce;
exports.markReloadable = markReloadable;
/* eslint-disable no-unused-vars */
function markReloadable(module) {}
function defonce(module, fn, key) {
return fn();
}
function defobj(module, object, key) {
return object;
}
function defn(module, fn, key) {
return fn;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtYXJrUmVsb2FkYWJsZSIsIm1vZHVsZSIsImRlZm9uY2UiLCJmbiIsImtleSIsImRlZm9iaiIsIm9iamVjdCIsImRlZm4iXSwic291cmNlcyI6WyIuLi9zcmMvbm9vcC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBAZmxvdyAqL1xuLyogZXNsaW50LWRpc2FibGUgbm8tdW51c2VkLXZhcnMgKi9cblxuZXhwb3J0IGZ1bmN0aW9uIG1hcmtSZWxvYWRhYmxlKG1vZHVsZTogdHlwZW9mIG1vZHVsZSkge1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZGVmb25jZTxUPihtb2R1bGU6IHR5cGVvZiBtb2R1bGUsIGZuOiAoKT0+VCwga2V5PzpzdHJpbmcpOiBUIHtcbiAgcmV0dXJuIGZuKCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBkZWZvYmo8VDogT2JqZWN0Pihtb2R1bGU6IHR5cGVvZiBtb2R1bGUsIG9iamVjdDogVCwga2V5PzpzdHJpbmcpOiBUIHtcbiAgcmV0dXJuIG9iamVjdDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRlZm48VDogRnVuY3Rpb24+KG1vZHVsZTogdHlwZW9mIG1vZHVsZSwgZm46IFQsIGtleT86c3RyaW5nKTogVCB7XG4gIHJldHVybiBmbjtcbn1cbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQ0E7QUFFTyxTQUFTQSxjQU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