getAllWasmModules = (moduleGraph, chunkGraph, chunk) => {
	const wasmModules = chunk.getAllAsyncChunks();
	const array = [];
	for (const chunk of wasmModules) {
		for (const m of chunkGraph.getOrderedChunkModulesIterable(
			chunk,
			compareModulesByIdentifier
		)) {
			if (m.type.startsWith("webassembly")) {
				array.push(m);
			}
		}
	}

	return array;
}
@param {ModuleGraph} moduleGraph the module graph
@param {ChunkGraph} chunkGraph the chunk graph
@param {Chunk} chunk the chunk
@returns {Module[]} all wasm modules