MCPcopy
hub / github.com/webpack/webpack / interceptAllCssModulesPluginHooks

Function interceptAllCssModulesPluginHooks

lib/debug/ProfilingPlugin.js:485–493  ·  view source on GitHub ↗
(compilation, tracer)

Source from the content-addressed store, hash-verified

483 * @param {Trace} tracer tracer
484 */
485const interceptAllCssModulesPluginHooks = (compilation, tracer) => {
486 interceptAllHooksFor(
487 {
488 hooks: require("../css/CssModulesPlugin").getCompilationHooks(compilation)
489 },
490 tracer,
491 "CssModulesPlugin"
492 );
493};
494
495/** @typedef {(...args: EXPECTED_ANY[]) => EXPECTED_ANY | Promise<(...args: EXPECTED_ANY[]) => EXPECTED_ANY>} PluginFunction */
496

Callers 1

applyMethod · 0.85

Calls 3

interceptAllHooksForFunction · 0.85
requireFunction · 0.50
getCompilationHooksMethod · 0.45

Tested by

no test coverage detected