* @param {Compiler} compiler the compiler * @returns {EntryOptionPluginHooks} the hooks
(compiler)
| 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. |
no test coverage detected