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

Method intercept

lib/Hook.js:163–171  ·  view source on GitHub ↗
(interceptor)

Source from the content-addressed store, hash-verified

161 }
162
163 intercept(interceptor) {
164 this._resetCompilation();
165 this.interceptors.push(Object.assign({}, interceptor));
166 if (interceptor.register) {
167 for (let i = 0; i < this.taps.length; i++) {
168 this.taps[i] = interceptor.register(this.taps[i]);
169 }
170 }
171 }
172
173 _resetCompilation() {
174 this.call = this._call;

Callers 14

withOptionsMethod · 0.95
makeHookFunction · 0.45
registerFunction · 0.45
registerFunction · 0.45
registerFunction · 0.45
Hook.test.jsFile · 0.45
runForLoopSyncMethod · 0.45
runSyncMethod · 0.45
runInterceptMethod · 0.45
SyncHook.test.jsFile · 0.45

Calls 1

_resetCompilationMethod · 0.95

Tested by 3

runForLoopSyncMethod · 0.36
runSyncMethod · 0.36
runInterceptMethod · 0.36