MCPcopy
hub / github.com/webpack/webpack / getEnabledTypes

Function getEnabledTypes

lib/library/EnableLibraryPlugin.js:27–35  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

25 * @returns {LibraryTypes} enabled types
26 */
27const getEnabledTypes = (compiler) => {
28 let set = enabledTypes.get(compiler);
29 if (set === undefined) {
30 /** @type {LibraryTypes} */
31 set = new Set();
32 enabledTypes.set(compiler, set);
33 }
34 return set;
35};
36
37class EnableLibraryPlugin {
38 /**

Callers 3

setEnabledMethod · 0.70
checkEnabledMethod · 0.70
applyMethod · 0.70

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected