getUsedDependencyMap = (moduleGraph, module, mangle) => {
	/** @type {Map<string, UsedWasmDependency>} */
	const map = new Map();
	for (const usedDep of WebAssemblyUtils.getUsedDependencies(
		moduleGraph,
		module,
		mangle
	)) {
		const dep = usedDep.dependency;
		const request = dep.request;
		const exportName = dep.name;
		map.set(`${request}:${exportName}`, usedDep);
	}
	return map;
}
Extract mangle mappings from module
@param {ModuleGraph} moduleGraph module graph
@param {Module} module current module
@param {boolean | undefined} mangle mangle imports
@returns {Map<string, UsedWasmDependency>} mappings to mangled names