MCPcopy
hub / github.com/webpack/webpack / getHooks

Method getHooks

lib/EntryOptionPlugin.js:30–39  ·  view source on GitHub ↗

* @param {Compiler} compiler the compiler * @returns {EntryOptionPluginHooks} the hooks

(compiler)

Source from the content-addressed store, hash-verified

28 * @returns {EntryOptionPluginHooks} the hooks
29 */
30 static getHooks(compiler) {
31 let hooks = hooksMap.get(compiler);
32 if (hooks === undefined) {
33 hooks = {
34 entry: new SyncBailHook(["context", "name", "entryDescription"])
35 };
36 hooksMap.set(compiler, hooks);
37 }
38 return hooks;
39 }
40
41 /**
42 * Applies the plugin by registering its hooks on the compiler.

Callers 3

applyEntryOptionMethod · 0.80
applyMethod · 0.80
applyFunction · 0.80

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected