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

Function getEnabledTypes

lib/wasm/EnableWasmLoadingPlugin.js:22–30  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

20 * @returns {WasmLoadingTypes} enabled types
21 */
22const getEnabledTypes = (compiler) => {
23 let set = enabledTypes.get(compiler);
24 if (set === undefined) {
25 /** @type {WasmLoadingTypes} */
26 set = new Set();
27 enabledTypes.set(compiler, set);
28 }
29 return set;
30};
31
32/**
33 * Validates and enables named wasm loading backends by applying the plugin

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