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

Method apply

lib/LibraryTemplatePlugin.js:42–46  ·  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

40 * @returns {void}
41 */
42 apply(compiler) {
43 const { output } = compiler.options;
44 output.library = this.library;
45 new EnableLibraryPlugin(this.library.type).apply(compiler);
46 }
47}
48
49module.exports = LibraryTemplatePlugin;

Callers

nothing calls this directly

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected