MCPcopy
hub / github.com/webpack/webpack / tap

Function tap

test/helpers/PluginEnvironment.js:50–52  ·  test/helpers/PluginEnvironment.js::tap
(options, handler)

Source from the content-addressed store, hash-verified

48 const eventName = getEventName(/** @type {string} */ (hookName));
49 hook = {
50 tap(options, handler) {
51 addEvent(eventName, handler);
52 },
53 tapAsync(options, handler) {
54 addEvent(eventName, handler);
55 },

Callers

nothing calls this directly

Calls 1

addEventFunction · 0.85

Tested by

no test coverage detected