MCPcopy
hub / github.com/webpack/webpack / addEvent

Function addEvent

test/helpers/PluginEnvironment.js:16–21  ·  test/helpers/PluginEnvironment.js::addEvent

* @param {string} name the name * @param {Handler} handler the handler

(name, handler)

Source from the content-addressed store, hash-verified

14 * @param {Handler} handler the handler
15 */
16 function addEvent(name, handler) {
17 events.push({
18 name,
19 handler
20 });
21 }
22
23 /**
24 * @param {string} hookName a hook name

Callers 3

tapFunction · 0.85
tapAsyncFunction · 0.85
tapPromiseFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected