MCPcopy
hub / github.com/webpack/webpack / intercept

Method intercept

lib/Compilation.js:834–836  ·  lib/Compilation.js::Compilation.intercept

@type {AsyncSeriesHook<T>["intercept"]}

(_interceptor)

Source from the content-addressed store, hash-verified

832 name,
833 /** @type {AsyncSeriesHook<T>[class="st">"intercept"]} */
834 intercept(_interceptor) {
835 throw new Error(errorMessage(class="st">"it's using 'intercept'"));
836 },
837 /** @type {AsyncSeriesHook<T>[class="st">"tap"]} */
838 tap: (options, fn) => {
839 processAssetsHook.tap(getOptions(options), () => fn(...getArgs()));

Callers 6

_applyOnCompilerMethod · 0.80
interceptHookMethod · 0.80
constructorMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
interceptAllHooksForFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected