function getChunkInfo(chunk, chunkGraph) {
	const entries = Array.from(
		chunkGraph.getChunkEntryModulesWithChunkGroupIterable(chunk)
	);
	const runtimeChunk =
		entries.length > 0
			? /** @type {Entrypoint[][]} */
				(entries)[0][1].getRuntimeChunk()
			: null;

	return {
		entries,
		runtimeChunk
	};
}
Gets information about a chunk including its entries and runtime chunk
@param {Chunk} chunk The chunk to get information for
@param {ChunkGraph} chunkGraph The chunk graph containing the chunk
@returns {{entries: Array<[Module, Entrypoint | undefined]>, runtimeChunk: Chunk|null}} Object containing chunk entries and runtime chunk