MCPcopy
hub / github.com/webpack/webpack / interceptAllJavascriptModulesPluginHooks

Function interceptAllJavascriptModulesPluginHooks

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

Source from the content-addressed store, hash-verified

465 * @param {Trace} tracer tracer
466 */
467const interceptAllJavascriptModulesPluginHooks = (compilation, tracer) => {
468 interceptAllHooksFor(
469 {
470 hooks:
471 require("../javascript/JavascriptModulesPlugin").getCompilationHooks(
472 compilation
473 )
474 },
475 tracer,
476 "JavascriptModulesPlugin"
477 );
478};
479
480/**
481 * Intercept all css modules plugin hooks.

Callers 1

applyMethod · 0.85

Calls 3

interceptAllHooksForFunction · 0.85
requireFunction · 0.50
getCompilationHooksMethod · 0.45

Tested by

no test coverage detected