MCPcopy
hub / github.com/webpack/webpack / applyInvalidatedModules

Function applyInvalidatedModules

lib/hmr/HotModuleReplacement.runtime.js:547–563  ·  view source on GitHub ↗

* @returns {boolean | undefined} true when invalidated modules were applied

()

Source from the content-addressed store, hash-verified

545 * @returns {boolean | undefined} true when invalidated modules were applied
546 */
547 function applyInvalidatedModules() {
548 if (queuedInvalidatedModules) {
549 if (!currentUpdateApplyHandlers) currentUpdateApplyHandlers = [];
550 Object.keys($hmrInvalidateModuleHandlers$).forEach(function (key) {
551 /** @type {ModuleId[]} */ (queuedInvalidatedModules).forEach(
552 function (moduleId) {
553 $hmrInvalidateModuleHandlers$[key](
554 moduleId,
555 /** @type {ApplyHandler[]} */ (currentUpdateApplyHandlers)
556 );
557 }
558 );
559 });
560 queuedInvalidatedModules = undefined;
561 return true;
562 }
563 }
564};

Callers 2

hotCheckFunction · 0.85
internalApplyFunction · 0.85

Calls 2

keysMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected