* Applies the plugin by registering its hooks on the compiler. * @param {Compiler} compiler the compiler instance * @returns {void}
(compiler)
| 25 | * @returns {void} |
| 26 | */ |
| 27 | apply(compiler) { |
| 28 | compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => { |
| 29 | compilation.buildDependencies.addAll(this.buildDependencies); |
| 30 | }); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | module.exports = AddBuildDependenciesPlugin; |