MCPcopy
hub / github.com/webpack/webpack / setEnabled

Method setEnabled

lib/library/EnableLibraryPlugin.js:56–58  ·  view source on GitHub ↗

* Updates enabled using the provided compiler. * @param {Compiler} compiler the compiler instance * @param {LibraryType} type type of library * @returns {void}

(compiler, type)

Source from the content-addressed store, hash-verified

54 * @returns {void}
55 */
56 static setEnabled(compiler, type) {
57 getEnabledTypes(compiler).add(type);
58 }
59
60 /**
61 * Checks enabled.

Callers

nothing calls this directly

Calls 2

getEnabledTypesFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected