MCPcopy
hub / github.com/webpack/webpack / handler

Method handler

lib/css/CssModulesPlugin.js:621–628  ·  view source on GitHub ↗
(chunk, set)

Source from the content-addressed store, hash-verified

619 * @param {RuntimeRequirements} set runtime requirements
620 */
621 const handler = (chunk, set) => {
622 if (onceForChunkSet.has(chunk)) return;
623 onceForChunkSet.add(chunk);
624 if (!isEnabledForChunk(chunk)) return;
625
626 const CssLoadingRuntimeModule = getCssLoadingRuntimeModule();
627 compilation.addRuntimeModule(chunk, new CssLoadingRuntimeModule(set));
628 };
629 compilation.hooks.runtimeRequirementInTree
630 .for(RuntimeGlobals.hasCssModules)
631 .tap(PLUGIN_NAME, handler);

Callers

nothing calls this directly

Calls 3

addRuntimeModuleMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected