MCPcopy
hub / github.com/webpack/webpack / apply

Method apply

lib/cache/AddBuildDependenciesPlugin.js:27–31  ·  view source on GitHub ↗

* Applies the plugin by registering its hooks on the compiler. * @param {Compiler} compiler the compiler instance * @returns {void}

(compiler)

Source from the content-addressed store, hash-verified

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
34module.exports = AddBuildDependenciesPlugin;

Callers

nothing calls this directly

Calls 2

tapMethod · 0.80
addAllMethod · 0.45

Tested by

no test coverage detected