MCPcopy
hub / github.com/webpack/webpack / hotApply

Function hotApply

lib/hmr/HotModuleReplacement.runtime.js:432–443  ·  view source on GitHub ↗

* @param {ApplyOptions=} options apply options * @returns {Promise<ModuleId[]>} updated module ids

(options)

Source from the content-addressed store, hash-verified

430 * @returns {Promise<ModuleId[]>} updated module ids
431 */
432 function hotApply(options) {
433 if (currentStatus !== "ready") {
434 return Promise.resolve().then(function () {
435 throw new Error(
436 "apply() is only allowed in ready status (state: " +
437 currentStatus +
438 ")"
439 );
440 });
441 }
442 return internalApply(options);
443 }
444
445 /**
446 * @param {boolean | ApplyOptions=} options apply options

Callers

nothing calls this directly

Calls 2

internalApplyFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected