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

Method setEnabled

lib/wasm/EnableWasmLoadingPlugin.js:54–56  ·  view source on GitHub ↗

* Marks a custom or built-in wasm loading type as enabled for the compiler * without applying additional built-in behavior. * @param {Compiler} compiler the compiler instance * @param {WasmLoadingType} type type of library * @returns {void}

(compiler, type)

Source from the content-addressed store, hash-verified

52 * @returns {void}
53 */
54 static setEnabled(compiler, type) {
55 getEnabledTypes(compiler).add(type);
56 }
57
58 /**
59 * Verifies that a wasm loading type has been enabled before code generation

Callers

nothing calls this directly

Calls 2

getEnabledTypesFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected